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

Function dispatch_copy_async

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

Source from the content-addressed store, hash-verified

99// host -> device (async)
100template<class InputIterator, class OutputIterator>
101inline future<OutputIterator>
102dispatch_copy_async(InputIterator first,
103 InputIterator last,
104 OutputIterator result,
105 command_queue &queue,
106 const wait_list &events,
107 typename boost::enable_if<
108 mpl::and_<
109 mpl::not_<
110 is_device_iterator<InputIterator>
111 >,
112 is_device_iterator<OutputIterator>,
113 is_same_value_type<InputIterator, OutputIterator>
114 >
115 >::type* = 0)
116{
117 BOOST_STATIC_ASSERT_MSG(
118 is_contiguous_iterator<InputIterator>::value,
119 "copy_async() is only supported for contiguous host iterators"
120 );
121
122 return copy_to_device_async(first, last, result, queue, events);
123}
124
125// host -> device (async)
126// Type mismatch between InputIterator and OutputIterator value_types

Callers 2

dispatch_copyFunction · 0.85
copy_asyncFunction · 0.85

Calls 14

copy_to_device_asyncFunction · 0.85
iterator_range_sizeFunction · 0.85
copy_on_device_asyncFunction · 0.85
copy_to_host_asyncFunction · 0.85
make_futureFunction · 0.85
eventClass · 0.85
enqueue_unmap_bufferMethod · 0.80
enqueue_copy_bufferMethod · 0.80
get_contextMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected