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

Function BOOST_AUTO_TEST_CASE

test/test_async_wait_guard.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace compute = boost::compute;
24
25BOOST_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
41BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 5

fill_asyncFunction · 0.85
statusMethod · 0.80
get_eventMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected