MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

tests/sycl/kernel_invocation.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17BOOST_AUTO_TEST_CASE(basic_single_task) {
18 sycl::queue queue;
19 sycl::buffer<int, 1> buf{sycl::range<1>(1)};
20 queue.submit([&](sycl::handler& cgh) {
21 auto acc = buf.get_access<sycl::access::mode::discard_write>(cgh);
22 cgh.single_task<class basic_single_task>([=]() {
23 acc[0] = 321;
24 });
25 });
26 auto acc = buf.get_access<sycl::access::mode::read>();
27 BOOST_TEST(acc[0] == 321);
28}
29
30BOOST_AUTO_TEST_CASE(empty_kernel_submission) {
31 sycl::queue q;

Callers

nothing calls this directly

Calls 9

malloc_deviceFunction · 0.85
push_backMethod · 0.80
submitMethod · 0.45
wait_and_throwMethod · 0.45
parallel_forMethod · 0.45
get_global_idMethod · 0.45
get_groupMethod · 0.45
sizeMethod · 0.45
get_local_idMethod · 0.45

Tested by

no test coverage detected