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

Function gather

include/boost/compute/algorithm/gather.hpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70/// \see scatter()
71template<class InputIterator, class MapIterator, class OutputIterator>
72inline void gather(MapIterator first,
73 MapIterator last,
74 InputIterator input,
75 OutputIterator result,
76 command_queue &queue = system::default_queue())
77{
78 BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
79 BOOST_STATIC_ASSERT(is_device_iterator<MapIterator>::value);
80 BOOST_STATIC_ASSERT(is_device_iterator<OutputIterator>::value);
81
82 detail::gather_kernel<InputIterator, MapIterator, OutputIterator> kernel;
83
84 kernel.set_range(first, last, input, result);
85 kernel.exec(queue);
86}
87
88} // end compute namespace
89} // end boost namespace

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
unique_copyFunction · 0.85

Calls 2

set_rangeMethod · 0.45
execMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68