File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O0 -o %t.out
2
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O1 -o %t.out
3
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O2 -o %t.out
4
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O3 -o %t.out
5
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Ofast -o %t.out
6
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Os -o %t.out
7
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Oz -o %t.out
8
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Og -o %t.out
9
+ // RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O -o %t.out
10
+
11
+ // NOTE: Tests that debugging information can be generated for all optimization
12
+ // levels.
13
+
14
+ #include < CL/sycl.hpp>
15
+
16
+ int main () {
17
+ sycl::queue q;
18
+
19
+ q.submit ([&](sycl::handler &cgh) {
20
+ cgh.parallel_for <class kernel_test >(100 , [=](sycl::id<1 > idx) {});
21
+ });
22
+ q.wait ();
23
+
24
+ return 0 ;
25
+ }
You can’t perform that action at this time.
0 commit comments