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
// expected-note@+1 {{called by 'kernel_single_task<AName, (lambda}}
9
-
kernelFunc();
10
-
}
11
-
12
-
} // namespace sycl
13
-
} // namespace cl
5
+
sycl::queue deviceQueue;
14
6
15
7
intmain(int argc, char **argv) {
16
8
//_mm_prefetch is an x86-64 specific builtin where the second integer parameter is required to be a constant
@@ -19,9 +11,13 @@ int main(int argc, char **argv) {
19
11
20
12
_mm_prefetch("test", 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}}
21
13
22
-
cl::sycl::kernel_single_task<classAName>([]() {
23
-
_mm_prefetch("test", 4); // expected-error {{builtin is not supported on this target}}
24
-
_mm_prefetch("test", 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} expected-error {{builtin is not supported on this target}}
14
+
deviceQueue.submit([&](sycl::handler &h) {
15
+
// expected-note@Inputs/sycl.hpp:212 {{called by 'kernel_single_task<AName, (lambda}}
16
+
h.single_task<classAName>([]() {
17
+
_mm_prefetch("test", 4); // expected-error {{builtin is not supported on this target}}
18
+
_mm_prefetch("test", 8); // expected-error {{argument value 8 is outside the valid range [0, 7]}} expected-error {{builtin is not supported on this target}}
0 commit comments