| 83 | // host -> device (async) |
| 84 | template<class InputIterator, class OutputIterator> |
| 85 | inline future<OutputIterator> |
| 86 | dispatch_copy_async(InputIterator first, |
| 87 | InputIterator last, |
| 88 | OutputIterator result, |
| 89 | command_queue &queue, |
| 90 | typename boost::enable_if_c< |
| 91 | !is_device_iterator<InputIterator>::value && |
| 92 | is_device_iterator<OutputIterator>::value |
| 93 | >::type* = 0) |
| 94 | { |
| 95 | BOOST_STATIC_ASSERT_MSG( |
| 96 | is_contiguous_iterator<InputIterator>::value, |
| 97 | "copy_async() is only supported for contiguous host iterators" |
| 98 | ); |
| 99 | |
| 100 | return copy_to_device_async(first, last, result, queue); |
| 101 | } |
| 102 | |
| 103 | // device -> host |
| 104 | template<class InputIterator, class OutputIterator> |
no test coverage detected