MCPcopy Create free account
hub / github.com/boostorg/compute / enqueue_barrier

Method enqueue_barrier

include/boost/compute/command_queue.hpp:1524–1541  ·  view source on GitHub ↗

Enqueues a barrier in the queue.

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

opencl_errorClass · 0.85
check_versionMethod · 0.80
get_event_ptrMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected