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 suppressed warnings from SYCL headers (#2575)
This updates FE tests related to the following warnings:
- Passing kernel functions by value is deprecated in SYCL 2020.
- Passing of kernel functions by reference is a SYCL 2020 extension.
- SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable.
The updated tests include the mock <sycl.hpp> header file and call the kernel invocation functions defined in the mock header.
// expected-note@+4{{in instantiation of function template specialization}}
56
-
// expected-error@28 {{kernel needs to have a globally-visible name}}
34
+
// expected-note@+4{{in instantiation of function template specialization}}
35
+
#endif
57
36
classInvalidKernelName1 {};
58
37
q.submit([&](handler &h) {
59
38
h.single_task<InvalidKernelName1>([]() {});
60
39
});
61
-
#endif
40
+
62
41
#if defined(WARN)
63
-
// expected-warning@+6 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
64
-
// expected-note@+5 {{fake_kernel declared here}}
42
+
// expected-warning@Inputs/sycl.hpp:220 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
65
43
#elif defined(ERROR)
66
-
// expected-error@+3 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
67
-
// expected-note@+2 {{fake_kernel declared here}}
44
+
// expected-error@Inputs/sycl.hpp:220 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
// expected-warning@Inputs/sycl.hpp:220 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
73
57
#elif defined(ERROR)
74
-
// expected-error@+3 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
// expected-error@Inputs/sycl.hpp:220 {{SYCL 1.2.1 specification requires an explicit forward declaration for a kernel type name; your program may not be portable}}
0 commit comments