aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Dvorskiy <mikhail.dvorskiy@intel.com>2021-02-25 17:54:04 +0300
committerMikhail Dvorskiy <mikhail.dvorskiy@intel.com>2021-02-25 17:54:04 +0300
commit62ebae6d6f9c63a7dae95b508aa223302399f2a2 (patch)
tree71c1e925224ffa89b174e97b0d62aa8fe97cca60
parentReduce number of elements to scan due to taking too much time when testing (#... (diff)
downloadllvm-project-62ebae6d6f9c63a7dae95b508aa223302399f2a2.tar.gz
llvm-project-62ebae6d6f9c63a7dae95b508aa223302399f2a2.tar.bz2
llvm-project-62ebae6d6f9c63a7dae95b508aa223302399f2a2.zip
[dpc++][ranges] the tests: making unique kernel name
-rw-r--r--test/parallel_api/ranges/find_ranges_sycl.pass.cpp8
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