@@ -67,7 +67,7 @@ InputIt find_impl(ExecutionPolicy &sep, InputIt b, InputIt e,
6767 }
6868
6969 auto ndRange = sep.calculateNdRange (vectorSize);
70- const auto local = ndRange.get_local ()[0 ];
70+ const auto local = ndRange.get_local_range ()[0 ];
7171
7272 // map across the input testing whether they match the predicate
7373 // store the result of the predicate and the index in the array of the result
@@ -78,7 +78,7 @@ InputIt find_impl(ExecutionPolicy &sep, InputIt b, InputIt e,
7878 h.parallel_for <
7979 cl::sycl::helpers::NameGen<0 , typename ExecutionPolicy::kernelName> >(
8080 ndRange, [aI, aO, vectorSize, p](cl::sycl::nd_item<1 > id) {
81- const auto m_id = id.get_global (0 );
81+ const auto m_id = id.get_global_id (0 );
8282 // store index or the vector length, so that we can find the
8383 // _first_ index which is true, as opposed to just "one" of them
8484 if (m_id < vectorSize) {
@@ -99,7 +99,7 @@ InputIt find_impl(ExecutionPolicy &sep, InputIt b, InputIt e,
9999 t_buf.template get_access <cl::sycl::access::mode::read_write>(h);
100100 cl::sycl::accessor<std::size_t , 1 , cl::sycl::access::mode::read_write,
101101 cl::sycl::access::target::local>
102- scratch (ndRange.get_local (), h);
102+ scratch (ndRange.get_local_range (), h);
103103
104104 h.parallel_for <
105105 cl::sycl::helpers::NameGen<1 , typename ExecutionPolicy::kernelName> >(
@@ -116,7 +116,7 @@ InputIt find_impl(ExecutionPolicy &sep, InputIt b, InputIt e,
116116 q.submit (rf);
117117 length = length / local;
118118 ndRange = cl::sycl::nd_range<1 >{cl::sycl::range<1 >(std::max (length, local)),
119- ndRange.get_local ()};
119+ ndRange.get_local_range ()};
120120 } while (length > 1 );
121121 q.wait_and_throw ();
122122
0 commit comments