| 40 | // fills the range [first, first + count) with value using copy() |
| 41 | template<class BufferIterator, class T> |
| 42 | inline void fill_with_copy(BufferIterator first, |
| 43 | size_t count, |
| 44 | const T &value, |
| 45 | command_queue &queue) |
| 46 | { |
| 47 | ::boost::compute::copy( |
| 48 | ::boost::compute::make_constant_iterator(value, 0), |
| 49 | ::boost::compute::make_constant_iterator(value, count), |
| 50 | first, |
| 51 | queue |
| 52 | ); |
| 53 | } |
| 54 | |
| 55 | // fills the range [first, first + count) with value using copy_async() |
| 56 | template<class BufferIterator, class T> |
no test coverage detected