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
[SYCL] Emit kernel args size warning for real sycl headers (#2554)
It turned out that real sycl headers are included as "system" headers
and the actual warning points to function defined there, so the warning
about kernel arguments size wasn't emitted.
// expected-warning@../../include/sycl/CL/sycl/handler.hpp:919 {{size of kernel arguments (8068 bytes) may exceed the supported maximum of 2048 bytes on some devices}}
8
+
9
+
intmain() {
10
+
structS {
11
+
int A;
12
+
int B;
13
+
int Array[2015];
14
+
} Args;
15
+
queue myQueue;
16
+
myQueue.submit([&](handler &cgh) {
17
+
// expected-note@+1 {{in instantiation of function template specialization 'cl::sycl::handler::single_task}}
0 commit comments