@@ -128,7 +128,7 @@ SYCL_EXTERNAL
128
128
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY (
129
129
(ext::oneapi::experimental::nd_range_kernel<1 >))
130
130
void ff_1(int *ptr, int start, int end) {
131
- nd_item<1 > Item = ext::oneapi::experimental::this_nd_item <1 >();
131
+ nd_item<1 > Item = ext::oneapi::this_work_item::get_nd_item <1 >();
132
132
id<1 > GId = Item.get_global_id ();
133
133
ptr[GId.get (0 )] = GId.get (0 ) + start + end;
134
134
}
@@ -175,7 +175,7 @@ SYCL_EXT_ONEAPI_FUNCTION_PROPERTY(
175
175
(ext::oneapi::experimental::nd_range_kernel<2 >))
176
176
void ff_2(int *ptr, int start, struct Simple S) {
177
177
int (&ptr2D)[4 ][4 ] = *reinterpret_cast <int (*)[4 ][4 ]>(ptr);
178
- nd_item<2 > Item = ext::oneapi::experimental::this_nd_item <2 >();
178
+ nd_item<2 > Item = ext::oneapi::this_work_item::get_nd_item <2 >();
179
179
id<2 > GId = Item.get_global_id ();
180
180
id<2 > LId = Item.get_local_id ();
181
181
ptr2D[GId.get (0 )][GId.get (1 )] =
@@ -229,7 +229,7 @@ SYCL_EXTERNAL SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((
229
229
ext::oneapi::experimental::nd_range_kernel<2 >)) void ff_3(T *ptr, T start,
230
230
struct Simple S) {
231
231
int (&ptr2D)[4 ][4 ] = *reinterpret_cast <int (*)[4 ][4 ]>(ptr);
232
- nd_item<2 > Item = ext::oneapi::experimental::this_nd_item <2 >();
232
+ nd_item<2 > Item = ext::oneapi::this_work_item::get_nd_item <2 >();
233
233
id<2 > GId = Item.get_global_id ();
234
234
id<2 > LId = Item.get_local_id ();
235
235
ptr2D[GId.get (0 )][GId.get (1 )] =
0 commit comments