Skip to content

Commit 5ff233f

Browse files
committed
[SYCL] fix cuda test
1 parent f8bb79c commit 5ff233f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/SemaSYCL/reqd-sub-group-size-cuda.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsycl-is-device -Wno-error=deprecated-declarations -triple nvptx -internal-isystem %S/Inputs -std=c++2b -verify %s
1+
// RUN: %clang_cc1 -fsycl-is-device -triple nvptx -internal-isystem %S/Inputs -std=c++2b -verify %s
22
//
33
// This tests that a warning is returned when a sub group size other than 32 is
44
// requested in the CUDA backend via the reqd_sub_group_size() kernel attribute.
@@ -9,11 +9,11 @@ int main() {
99
sycl::queue Q;
1010

1111
Q.submit([&](sycl::handler &h) {
12-
h.single_task<class invalid_kernel>([=] [[intel::reqd_sub_group_size(8)]] {}); // expected-warning {{attribute argument 8 is invalid and will be ignored; nvptx requires sub_group size 32}}
12+
h.single_task<class invalid_kernel>([=] [[sycl::reqd_sub_group_size(8)]] {}); // expected-warning {{attribute argument 8 is invalid and will be ignored; nvptx requires sub_group size 32}}
1313
});
1414

1515
Q.submit([&](sycl::handler &h) {
16-
h.single_task<class valid_kernel>([=] [[intel::reqd_sub_group_size(32)]] {});
16+
h.single_task<class valid_kernel>([=] [[sycl::reqd_sub_group_size(32)]] {});
1717
});
1818

1919
return 0;

0 commit comments

Comments
 (0)