mirror of
https://github.com/boostorg/compute.git
synced 2026-01-31 08:02:16 +00:00
Fix command_queue::enqueue_marker() for OpenCL 1.2
This changes the enqueue_marker() method in the command_queue class to use clEnqueueMarkerWithWaitList() instead of the deprecated clEnqueueMarker() function when compiling with OpenCL 1.2.
This commit is contained in:
@@ -970,7 +970,13 @@ public:
|
||||
event enqueue_marker()
|
||||
{
|
||||
cl_event event_;
|
||||
|
||||
#ifdef CL_VERSION_1_2
|
||||
cl_int ret = clEnqueueMarkerWithWaitList(m_queue, 0, 0, &event_);
|
||||
#else
|
||||
cl_int ret = clEnqueueMarker(m_queue, &event_);
|
||||
#endif
|
||||
|
||||
if(ret != CL_SUCCESS){
|
||||
BOOST_THROW_EXCEPTION(runtime_exception(ret));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user