MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

compute/test/test_fill.cpp:245–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245BOOST_AUTO_TEST_CASE(check_fill_type)
246{
247 bc::vector<int> vector(5, context);
248 bc::future<void> future =
249 bc::fill_async(vector.begin(), vector.end(), 42, queue);
250 future.wait();
251
252 #ifdef BOOST_COMPUTE_CL_VERSION_1_2
253 BOOST_CHECK_EQUAL(
254 future.get_event().get_command_type(),
255 device.check_version(1,2) ? CL_COMMAND_FILL_BUFFER : CL_COMMAND_NDRANGE_KERNEL
256 );
257 #else
258 BOOST_CHECK(
259 future.get_event().get_command_type() == CL_COMMAND_NDRANGE_KERNEL
260 );
261 #endif
262}
263
264BOOST_AUTO_TEST_CASE(fill_clone_buffer)
265{

Callers

nothing calls this directly

Calls 15

fill_asyncFunction · 0.85
equalFunction · 0.85
fill_nFunction · 0.85
svm_freeFunction · 0.85
get_command_typeMethod · 0.80
enqueue_svm_mapMethod · 0.80
enqueue_svm_unmapMethod · 0.80
fillFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
waitMethod · 0.45
get_eventMethod · 0.45

Tested by

no test coverage detected