We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0055992 commit a59ab69Copy full SHA for a59ab69
SYCL/Basic/build_log.cpp
@@ -0,0 +1,20 @@
1
+// REQUIRES: opencl || level_zero, gpu
2
+// UNSUPPORTED: gpu-intel-dg1
3
+//
4
+// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-device dg1" %s -o %t.out
5
+// RUN: %GPU_RUN_PLACEHOLDER env SYCL_RT_WARNING_LEVEL=2 %t.out 2>&1 %GPU_CHECK_PLACEHOLDER
6
+
7
+#include <sycl/sycl.hpp>
8
9
+int main() {
10
+ sycl::queue Q{sycl::default_selector()};
11
12
+ auto *I = sycl::malloc_device<int>(1, Q);
13
+ Q.single_task([=]() { I[0] = 42; });
14
15
+ sycl::free(I, Q);
16
17
+ return 0;
18
+}
19
20
+// CHECK: The program was built for {{.*}} devices
0 commit comments