Enqueues a barrier in the queue.
| 1522 | |
| 1523 | /// Enqueues a barrier in the queue. |
| 1524 | void enqueue_barrier() |
| 1525 | { |
| 1526 | BOOST_ASSERT(m_queue != 0); |
| 1527 | cl_int ret = CL_SUCCESS; |
| 1528 | |
| 1529 | #ifdef CL_VERSION_1_2 |
| 1530 | if(get_device().check_version(1, 2)){ |
| 1531 | ret = clEnqueueBarrierWithWaitList(m_queue, 0, 0, 0); |
| 1532 | } else |
| 1533 | #endif // CL_VERSION_1_2 |
| 1534 | { |
| 1535 | ret = clEnqueueBarrier(m_queue); |
| 1536 | } |
| 1537 | |
| 1538 | if(ret != CL_SUCCESS){ |
| 1539 | BOOST_THROW_EXCEPTION(opencl_error(ret)); |
| 1540 | } |
| 1541 | } |
| 1542 | |
| 1543 | #if defined(CL_VERSION_1_2) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED) |
| 1544 | /// Enqueues a barrier in the queue after \p events. |
nothing calls this directly
no test coverage detected