MCPcopy Create free account
hub / github.com/boostorg/compute / dispatch_copy_async

Function dispatch_copy_async

include/boost/compute/algorithm/copy.hpp:85–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83// host -> device (async)
84template<class InputIterator, class OutputIterator>
85inline future<OutputIterator>
86dispatch_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
104template<class InputIterator, class OutputIterator>

Callers 1

copy_asyncFunction · 0.85

Calls 7

copy_to_device_asyncFunction · 0.85
copy_to_host_asyncFunction · 0.85
copy_on_device_asyncFunction · 0.85
make_futureFunction · 0.85
eventClass · 0.85
enqueue_copy_bufferMethod · 0.80
get_indexMethod · 0.45

Tested by

no test coverage detected