Skip to content

Commit

Permalink
[oneDPL][ranges][zip_view][test] + minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDvorskiy committed Sep 27, 2024
1 parent 91cf6b0 commit 80ef9c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/parallel_api/ranges/std_ranges_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

#include <oneapi/dpl/execution>
#include <oneapi/dpl/algorithm>
#include <oneapi/dpl/pstl/zip_view_impl.h>

#include "support/test_config.h"

Expand Down Expand Up @@ -501,11 +500,6 @@ struct test_range_algo
test<T, host_span<T>, mode>{}(host_policies(), algo, checker, std::views::all, std::identity{}, args...);
#endif

#if 0//zip_view
auto zip_view = [](auto&& v) { return my::zip(v); };
test<T, host_subrange<T>, mode>{}(host_policies(), algo, checker, zip_view, std::identity{}, args...);
#endif

#if TEST_DPCPP_BACKEND_PRESENT
//Skip the cases with pointer-to-function and hetero policy because pointer-to-function is not supported within kernel code.
if constexpr(!std::disjunction_v<std::is_member_function_pointer<decltype(args)>...>)
Expand Down
3 changes: 3 additions & 0 deletions test/parallel_api/ranges/std_ranges_zip_view.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//===----------------------------------------------------------------------===//

#include "std_ranges_test.h"
#include <oneapi/dpl/pstl/zip_view_impl.h>

template<typename>
struct print_type;
Expand All @@ -33,7 +34,9 @@ main()

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); });

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

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

Expand Down

0 comments on commit 80ef9c5

Please sign in to comment.