Skip to content

Commit

Permalink
add a ranges contiguous_range shp::copy signature
Browse files Browse the repository at this point in the history
  • Loading branch information
haichangsi committed Nov 28, 2023
1 parent 840910b commit 14709a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/dr/shp/algorithms/copy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ sycl::event copy_async(InputIt first, InputIt last, OutputIt d_first) {
return dr::shp::__detail::combine_events(events);
}

template <rng::contiguous_range InputIt, dr::distributed_iterator OutputIt>
void copy(InputIt first, OutputIt d_first) {
copy(rng::begin(first), rng::end(first), d_first);
}

template <std::forward_iterator InputIt, dr::distributed_iterator OutputIt>
requires __detail::is_syclmemcopyable<std::iter_value_t<InputIt>,
std::iter_value_t<OutputIt>>
Expand Down

0 comments on commit 14709a0

Please sign in to comment.