| 9478 | */ |
| 9479 | template< typename IteratorType > |
| 9480 | inline cl_int copy( IteratorType startIterator, IteratorType endIterator, cl::Buffer &buffer ) |
| 9481 | { |
| 9482 | cl_int error; |
| 9483 | CommandQueue queue = CommandQueue::getDefault(&error); |
| 9484 | if (error != CL_SUCCESS) |
| 9485 | return error; |
| 9486 | |
| 9487 | return cl::copy(queue, startIterator, endIterator, buffer); |
| 9488 | } |
| 9489 | |
| 9490 | /** |
| 9491 | * Blocking copy operation between iterators and a buffer. |
no test coverage detected