| 243 | } |
| 244 | |
| 245 | BOOST_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 | |
| 264 | BOOST_AUTO_TEST_CASE(fill_clone_buffer) |
| 265 | { |
nothing calls this directly
no test coverage detected