diff options
-rw-r--r-- | test/parallel_api/ranges/find_ranges_sycl.pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel_api/ranges/find_ranges_sycl.pass.cpp b/test/parallel_api/ranges/find_ranges_sycl.pass.cpp index 770881330c88..5deb28da0210 100644 --- a/test/parallel_api/ranges/find_ranges_sycl.pass.cpp +++ b/test/parallel_api/ranges/find_ranges_sycl.pass.cpp @@ -49,11 +49,11 @@ main() using Policy = decltype(TestUtils::default_dpcpp_policy); res1 = find(exec, view, val); //check passing all_view - res1 = find(exec, A, val); //check passing sycl::buffer directly - res2 = find_if(make_new_policy<new_kernel_name<Policy, 0>>(exec), view, [val](auto a) { return a == val;}); + res1 = find(make_new_policy<new_kernel_name<Policy, 0>>(exec), A, val); //check passing sycl::buffer directly + res2 = find_if(exec, view, [val](auto a) { return a == val;}); res2 = find_if(make_new_policy<new_kernel_name<Policy, 0>>(exec), A, [val](auto a) { return a == val;}); - res3 = find_if_not(make_new_policy<new_kernel_name<Policy, 1>>(exec), view, [val](auto a) { return a >= 0;}); - res3 = find_if_not(make_new_policy<new_kernel_name<Policy, 1>>(exec), A, [val](auto a) { return a >= 0;}); + res3 = find_if_not(exec, view, [val](auto a) { return a >= 0;}); + res3 = find_if_not(make_new_policy<new_kernel_name<Policy, 0>>(exec), A, [val](auto a) { return a >= 0;}); } //check result |