Skip to content

Commit

Permalink
[oneDPL][ranges][zip_view][test] -> oneapi::dpl::ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Sep 25, 2024
1 parent cccd37a commit e55c567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel_api/ranges/std_ranges_zip_view.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ main()
constexpr int max_n = 10;
int data[max_n] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};

auto zip_view = my::zip(data, std::views::iota(0, max_n)) | std::views::take(5);
auto zip_view = dpl_ranges::zip(data, std::views::iota(0, max_n)) | std::views::take(5);
std::ranges::for_each(zip_view, test_std_ranges::f_mutuable, [](const auto& val) { return std::get<1>(val); });

test_std_ranges::call_with_host_policies(dpl_ranges::for_each, zip_view, test_std_ranges::f_mutuable, [](const auto& val) { return std::get<1>(val); });

dpl_ranges::for_each(test_std_ranges::dpcpp_policy(), zip_view, test_std_ranges::f_mutuable, [](const auto& val) { return std::get<1>(val); });

auto zip_view_sort = my::zip(data, data);
auto zip_view_sort = dpl_ranges::zip(data, data);

std::sort(zip_view_sort.begin(), zip_view_sort.begin() + max_n, [](const auto& val1, const auto& val2) { return std::get<0>(val1) > std::get<0>(val2); });
for(int i = 0; i < max_n; ++i)
Expand Down

0 comments on commit e55c567

Please sign in to comment.