@@ -39,10 +39,10 @@ int main() {
3939 sycl::access::target::global_buffer>
4040 results_acc (results_buf.get_access <sycl::access::mode::write>(cgh));
4141 cgh.parallel_for <class IdTest >(n, [=](sycl::id<1 > i) {
42- auto that_id = sycl::experimental::this_id<1 >();
42+ auto that_id = sycl::ext::oneapi:: experimental::this_id<1 >();
4343 results_acc[0 ] = that_id == i;
4444
45- auto that_item = sycl::experimental::this_item<1 >();
45+ auto that_item = sycl::ext::oneapi:: experimental::this_item<1 >();
4646 results_acc[1 ] = that_item.get_id () == i;
4747 results_acc[2 ] = that_item.get_range () == sycl::range<1 >(n);
4848 acc[i]++;
@@ -75,9 +75,9 @@ int main() {
7575 cgh.parallel_for <class ItemTest >(n, [=](auto i) {
7676 static_assert (std::is_same<decltype (i), sycl::item<1 >>::value,
7777 " lambda arg type is unexpected" );
78- auto that_id = sycl::experimental::this_id<1 >();
78+ auto that_id = sycl::ext::oneapi:: experimental::this_id<1 >();
7979 results_acc[0 ] = i.get_id () == that_id;
80- auto that_item = sycl::experimental::this_item<1 >();
80+ auto that_item = sycl::ext::oneapi:: experimental::this_item<1 >();
8181 results_acc[1 ] = i == that_item;
8282 acc[i]++;
8383 });
@@ -109,9 +109,9 @@ int main() {
109109 results_acc (results_buf.get_access <sycl::access::mode::write>(cgh));
110110 cgh.parallel_for <class ItemOffsetTest >(
111111 sycl::range<1 >{n}, offset, [=](sycl::item<1 , true > i) {
112- auto that_id = sycl::experimental::this_id<1 >();
112+ auto that_id = sycl::ext::oneapi:: experimental::this_id<1 >();
113113 results_acc[0 ] = i.get_id () == that_id;
114- auto that_item = sycl::experimental::this_item<1 >();
114+ auto that_item = sycl::ext::oneapi:: experimental::this_item<1 >();
115115 results_acc[1 ] = i == that_item;
116116 acc[that_item.get_linear_id ()]++;
117117 });
@@ -144,13 +144,16 @@ int main() {
144144 cgh.parallel_for <class NdItemTest >(NDR, [=](auto nd_i) {
145145 static_assert (std::is_same<decltype (nd_i), sycl::nd_item<1 >>::value,
146146 " lambda arg type is unexpected" );
147- auto that_nd_item = sycl::experimental::this_nd_item<1 >();
147+ auto that_nd_item =
148+ sycl::ext::oneapi::experimental::this_nd_item<1 >();
148149 results_acc[0 ] = that_nd_item == nd_i;
149150 auto nd_item_group = that_nd_item.get_group ();
150- results_acc[1 ] = nd_item_group == sycl::experimental::this_group<1 >();
151+ results_acc[1 ] =
152+ nd_item_group == sycl::ext::oneapi::experimental::this_group<1 >();
151153 auto nd_item_id = that_nd_item.get_global_id ();
152- results_acc[2 ] = nd_item_id == sycl::experimental::this_id<1 >();
153- auto that_item = sycl::experimental::this_item<1 >();
154+ results_acc[2 ] =
155+ nd_item_id == sycl::ext::oneapi::experimental::this_id<1 >();
156+ auto that_item = sycl::ext::oneapi::experimental::this_item<1 >();
154157 results_acc[3 ] = nd_item_id == that_item.get_id ();
155158 results_acc[4 ] =
156159 that_nd_item.get_global_range () == that_item.get_range ();
0 commit comments