Flushes the command queue. \see_opencl_ref{clFlush}
| 1549 | /// |
| 1550 | /// \see_opencl_ref{clFlush} |
| 1551 | void flush() |
| 1552 | { |
| 1553 | BOOST_ASSERT(m_queue != 0); |
| 1554 | |
| 1555 | cl_int ret = clFlush(m_queue); |
| 1556 | if(ret != CL_SUCCESS){ |
| 1557 | BOOST_THROW_EXCEPTION(opencl_error(ret)); |
| 1558 | } |
| 1559 | } |
| 1560 | |
| 1561 | /// Blocks until all outstanding commands in the queue have finished. |
| 1562 | /// |