| 23 | namespace compute = boost::compute; |
| 24 | |
| 25 | BOOST_AUTO_TEST_CASE(wait_for_fill) |
| 26 | { |
| 27 | compute::vector<int> vector(8192, context); |
| 28 | |
| 29 | compute::event fill_event = |
| 30 | compute::fill_async(vector.begin(), vector.end(), 9, queue).get_event(); |
| 31 | |
| 32 | BOOST_CHECK(fill_event.status() != CL_COMPLETE); |
| 33 | |
| 34 | { |
| 35 | compute::wait_guard<compute::event> fill_guard(fill_event); |
| 36 | } |
| 37 | |
| 38 | BOOST_CHECK(fill_event.status() == CL_COMPLETE); |
| 39 | } |
| 40 | |
| 41 | BOOST_AUTO_TEST_SUITE_END() |
nothing calls this directly
no test coverage detected