2
0
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:
Kyle Lutz
2013-03-31 12:08:23 -04:00
parent 7e7e09b704
commit 0aa3d024dc

View File

@@ -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));
}