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

[SYCL] Update reqd_work_group_size.cpp test with new attribute spelling #431

Merged
merged 5 commits into from
Sep 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions SYCL/Basic/reqd_work_group_size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main() {
Q.submit([&](handler &CGH) {
CGH.parallel_for<class ReqdWGSizePositiveA>(
nd_range<3>(range<3>(8, 8, 8), range<3>(4, 4, 4)), [=
](nd_item<3>) [[intel::reqd_work_group_size(4, 4, 4)]]{});
](nd_item<3>) [[sycl::reqd_work_group_size(4, 4, 4)]]{});
});
Q.wait_and_throw();
} catch (nd_range_error &E) {
Expand Down Expand Up @@ -56,7 +56,7 @@ int main() {
Q.submit([&](handler &CGH) {
CGH.parallel_for<class ReqdWGSizeNoLocalPositive>(
range<3>(16, 16, 16), [=
](item<3>) [[intel::reqd_work_group_size(4, 4, 4)]]{});
](item<3>) [[sycl::reqd_work_group_size(4, 4, 4)]]{});
});
Q.wait_and_throw();
} catch (nd_range_error &E) {
Expand Down Expand Up @@ -85,7 +85,7 @@ int main() {
Q.submit([&](handler &CGH) {
CGH.parallel_for<class ReqdWGSizeNegativeA>(
nd_range<3>(range<3>(16, 16, 16), range<3>(8, 8, 8)), [=
](nd_item<3>) [[intel::reqd_work_group_size(4, 4, 4)]]{
](nd_item<3>) [[sycl::reqd_work_group_size(4, 4, 4)]]{

});
});
Expand Down