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

Function BOOST_AUTO_TEST_CASE

tests/sycl/queue.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17BOOST_FIXTURE_TEST_SUITE(queue_tests, reset_device_fixture)
18
19BOOST_AUTO_TEST_CASE(queue_wait) {
20 sycl::queue q1;
21 sycl::queue q2;
22
23 auto evt1 = q1.single_task([=](){});
24 auto evt2 = q2.single_task([=](){});
25
26 BOOST_CHECK(q1.get_info<sycl::info::queue::AdaptiveCpp_node_group>() !=
27 q2.get_info<sycl::info::queue::AdaptiveCpp_node_group>());
28
29 q1.wait();
30 BOOST_CHECK(evt1.get_info<sycl::info::event::command_execution_status>() ==
31 sycl::info::event_command_status::complete);
32 q2.wait();
33 BOOST_CHECK(evt2.get_info<sycl::info::event::command_execution_status>() ==
34 sycl::info::event_command_status::complete);
35}
36
37BOOST_AUTO_TEST_CASE(queue_memcpy_host_to_host) {
38 try {

Callers

nothing calls this directly

Calls 6

malloc_hostFunction · 0.85
mallocFunction · 0.50
freeFunction · 0.50
single_taskMethod · 0.45
waitMethod · 0.45
memcpyMethod · 0.45

Tested by

no test coverage detected