Skip to content

Commit

Permalink
[SYCL] reqd_work_group_size attribute is reversed (fix intel#10)
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksander Fadeev <[email protected]>
  • Loading branch information
fadeeval committed Mar 4, 2020
1 parent a7eef4b commit 2b6df01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/test/SemaSYCL/reqd-work-group-size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void bar() {

class Functor16 {
public:
[[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {}
[[cl::reqd_work_group_size(16, 1, 1)]] [[cl::reqd_work_group_size(16, 1, 1)]] void operator()() {}
};

class Functor16x16x16 {
Expand All @@ -42,7 +42,7 @@ class Functor16x16x16 {

class Functor8 { // expected-error {{conflicting attributes applied to a SYCL kernel}}
public:
[[cl::reqd_work_group_size(1, 1, 8)]] [[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}}
[[cl::reqd_work_group_size(1, 1, 8)]] void operator()() { // expected-note {{conflicting attribute is here}}
f4x1x1();
}
};
Expand Down

0 comments on commit 2b6df01

Please sign in to comment.