You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch removes deprecated [[intel::reqd_work_group_size()]] attribute in favor of SYCL 2020 attribute [[sycl::reqd_work_group_size()]].
Signed-off-by: Soumi Manna <[email protected]>
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/intel-max-global-work-dim-device.cpp
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -166,9 +166,7 @@ struct TRIFuncObjBad5 {
166
166
};
167
167
168
168
structTRIFuncObjBad6 {
169
-
[[intel::reqd_work_group_size(4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}} \
170
-
// expected-warning {{attribute 'intel::reqd_work_group_size' is deprecated}} \
171
-
// expected-note {{did you mean to use 'sycl::reqd_work_group_size' instead?}}
169
+
[[sycl::reqd_work_group_size(4)]] // expected-error{{all 'reqd_work_group_size' attribute arguments must be '1' when the 'max_global_work_dim' attribute argument is '0'}}
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/num_simd_work_items_device.cpp
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,8 @@ struct FuncObj {
42
42
};
43
43
44
44
#ifdef TRIGGER_ERROR
45
-
// If the declaration has a [[intel::reqd_work_group_size]]
46
-
// [[cl::reqd_work_group_size]] attribute, tests that check
45
+
// If the declaration has a [[sycl::reqd_work_group_size]]
46
+
//or [[cl::reqd_work_group_size]] attribute, tests that check
47
47
// if the work group size attribute argument (the last argument)
48
48
// can be evenly divided by the [[intel::num_simd_work_items()]] attribute.
49
49
structTRIFuncObjBad1 {
@@ -60,7 +60,7 @@ struct TRIFuncObjBad2 {
60
60
operator()() const {}
61
61
};
62
62
63
-
// Tests for the default values of [[intel::reqd_work_group_size()]].
63
+
// Tests for the default values of [[sycl::reqd_work_group_size()]].
64
64
65
65
// FIXME: This should be accepted instead of error which turns out to be
66
66
// an implementation bug that shouldn't be visible to the user as there
@@ -131,9 +131,7 @@ struct TRIFuncObjBad8 {
131
131
[[intel::num_simd_work_items(2)]] // expected-error{{'num_simd_work_items' attribute must evenly divide the work-group size for the 'reqd_work_group_size' attribute}}
132
132
[[sycl::reqd_work_group_size(4, 2, 3)]] voidfunc1(); // expected-note{{conflicting attribute is here}}
133
133
134
-
[[intel::reqd_work_group_size(4, 2, 3)]] // expected-note{{conflicting attribute is here}} \
135
-
// expected-warning {{attribute 'intel::reqd_work_group_size' is deprecated}} \
136
-
// expected-note {{did you mean to use 'sycl::reqd_work_group_size' instead?}}
134
+
[[sycl::reqd_work_group_size(4, 2, 3)]] // expected-note{{conflicting attribute is here}}
137
135
[[intel::num_simd_work_items(2)]] voidfunc2(); // expected-error{{'num_simd_work_items' attribute must evenly divide the work-group size for the 'reqd_work_group_size' attribute}}
138
136
139
137
[[intel::num_simd_work_items(2)]] // expected-error{{'num_simd_work_items' attribute must evenly divide the work-group size for the 'reqd_work_group_size' attribute}}
@@ -211,7 +209,7 @@ struct TRIFuncObjBad18 {
211
209
};
212
210
213
211
#endif // TRIGGER_ERROR
214
-
// If the declaration has a [[intel::reqd_work_group_size()]]
212
+
// If the declaration has a [[sycl::reqd_work_group_size()]]
215
213
// or [[cl::reqd_work_group_size()]] or
216
214
// __attribute__((reqd_work_group_size)) attribute, check to see
217
215
// if the last argument can be evenly divided by the
0 commit comments