@@ -39,10 +39,10 @@ int main() {
39
39
sycl::access::target::global_buffer>
40
40
results_acc (results_buf.get_access <sycl::access::mode::write>(cgh));
41
41
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 >();
43
43
results_acc[0 ] = that_id == i;
44
44
45
- auto that_item = sycl::experimental::this_item<1 >();
45
+ auto that_item = sycl::ext::oneapi:: experimental::this_item<1 >();
46
46
results_acc[1 ] = that_item.get_id () == i;
47
47
results_acc[2 ] = that_item.get_range () == sycl::range<1 >(n);
48
48
acc[i]++;
@@ -75,9 +75,9 @@ int main() {
75
75
cgh.parallel_for <class ItemTest >(n, [=](auto i) {
76
76
static_assert (std::is_same<decltype (i), sycl::item<1 >>::value,
77
77
" 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 >();
79
79
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 >();
81
81
results_acc[1 ] = i == that_item;
82
82
acc[i]++;
83
83
});
@@ -109,9 +109,9 @@ int main() {
109
109
results_acc (results_buf.get_access <sycl::access::mode::write>(cgh));
110
110
cgh.parallel_for <class ItemOffsetTest >(
111
111
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 >();
113
113
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 >();
115
115
results_acc[1 ] = i == that_item;
116
116
acc[that_item.get_linear_id ()]++;
117
117
});
@@ -144,13 +144,16 @@ int main() {
144
144
cgh.parallel_for <class NdItemTest >(NDR, [=](auto nd_i) {
145
145
static_assert (std::is_same<decltype (nd_i), sycl::nd_item<1 >>::value,
146
146
" 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 >();
148
149
results_acc[0 ] = that_nd_item == nd_i;
149
150
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 >();
151
153
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 >();
154
157
results_acc[3 ] = nd_item_id == that_item.get_id ();
155
158
results_acc[4 ] =
156
159
that_nd_item.get_global_range () == that_item.get_range ();
0 commit comments