Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 3c0acf9

Browse files
author
Alexander Batashev
committed
update for new spec
1 parent ad85d03 commit 3c0acf9

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

SYCL/Basic/free_function_queries/free_function_queries.cpp

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

SYCL/Basic/free_function_queries/free_function_queries_sub_group.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ int main() {
4949
cgh.parallel_for<class NdItemTest>(NDR, [=](auto nd_i) {
5050
static_assert(std::is_same<decltype(nd_i), sycl::nd_item<1>>::value,
5151
"lambda arg type is unexpected");
52-
auto that_nd_item = sycl::experimental::this_nd_item<1>();
52+
auto that_nd_item =
53+
sycl::ext::oneapi::experimental::this_nd_item<1>();
5354
results_acc[0] = that_nd_item == nd_i;
5455

55-
auto that_sub_group = sycl::experimental::this_sub_group();
56+
auto that_sub_group =
57+
sycl::ext::oneapi::experimental::this_sub_group();
5658
results_acc[1] = that_sub_group.get_local_linear_id() ==
5759
that_nd_item.get_sub_group().get_local_linear_id();
5860
results_acc[2] = that_sub_group.get_local_id() ==

0 commit comments

Comments
 (0)