MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / copy_n

Function copy_n

include/hipSYCL/algorithms/algorithm.hpp:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257
258template <class ForwardIt1, class Size, class ForwardIt2>
259sycl::event copy_n(sycl::queue &q, ForwardIt1 first, Size count,
260 ForwardIt2 result,
261 const std::vector<sycl::event> &deps = {}) {
262 if(count <= 0)
263 return sycl::event{};
264
265 auto last = first;
266 std::advance(last, count);
267 return copy(q, first, last, result, deps);
268}
269
270template <class ForwardIt1, class ForwardIt2>
271sycl::event move(sycl::queue &q, ForwardIt1 first, ForwardIt1 last,

Callers 4

removeFunction · 0.70
remove_ifFunction · 0.70
test_copy_nFunction · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50

Calls 1

copyFunction · 0.70

Tested by 1

test_copy_nFunction · 0.40