Skip to content

Commit

Permalink
[oneDPL][sycl] + taking into account sycl_iterator 'offset' parameter…
Browse files Browse the repository at this point in the history
… within specialization for permutation_iterator
  • Loading branch information
MikeDvorskiy committed Dec 12, 2023
1 parent 0ed8c7c commit 9a86d77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/oneapi/dpl/pstl/hetero/dpcpp/utils_ranges_sycl.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ struct __get_sycl_range
auto __n = __last - __first;
assert(__n > 0);

auto res_src = this->operator()(__first.base(),
__first.base() + __dpl_sycl::__get_buffer_size(__first.base().get_buffer()));
auto res_src = this->operator()(__first.base(), oneapi::dpl::end(__first.base().get_buffer()));

auto rng = __get_permutation_view(res_src.all_view(), __first.map(), __n);

Expand Down

0 comments on commit 9a86d77

Please sign in to comment.