Skip to content

Commit 2b6df01

Browse files
committed
[SYCL] reqd_work_group_size attribute is reversed (fix #10)
Signed-off-by: Aleksander Fadeev <[email protected]>
1 parent a7eef4b commit 2b6df01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaSYCL/reqd-work-group-size.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void bar() {
3232

3333
class Functor16 {
3434
public:
35-
[[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {}
35+
[[cl::reqd_work_group_size(16, 1, 1)]] [[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {}
3636
};
3737

3838
class Functor16x16x16 {
@@ -42,7 +42,7 @@ class Functor16x16x16 {
4242

4343
class Functor8 { // expected-error {{conflicting attributes applied to a SYCL kernel}}
4444
public:
45-
[[cl::reqd_work_group_size(1, 1, 8)]] [[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}}
45+
[[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}}
4646
f4x1x1();
4747
}
4848
};

0 commit comments

Comments
 (0)