File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ // REQUIRES: system-windows
2
+ // / Verify same set of sycl-post-link options generated for old and new offloading model
3
+ // Test for JIT compilation
4
+ // RUN: %clangxx --target=x86_64-pc-windows-msvc -fsycl --offload-new-driver \
5
+ // RUN: -Xdevice-post-link -O0 -v %s 2>&1 \
6
+ // RUN: | FileCheck -check-prefix OPTIONS_POSTLINK_JIT %s
7
+ // RUN: %clangxx --target=x86_64-pc-windows-msvc -fsycl --no-offload-new-driver \
8
+ // RUN: -Xdevice-post-link -O0 -v %s 2>&1 \
9
+ // RUN: | FileCheck -check-prefix OPTIONS_POSTLINK_JIT %s
10
+ // OPTIONS_POSTLINK_JIT: sycl-post-link{{.*}} -O0 -O2 -device-globals -spec-const=native -split=auto -emit-only-kernels-as-entry-points -emit-param-info -symbols -emit-exported-symbols -split-esimd -lower-esimd
11
+
12
+ #include < sycl/sycl.hpp>
13
+ using namespace sycl ;
14
+
15
+ int main (void ) {
16
+ sycl::queue queue;
17
+ sycl::event event = queue.submit ([&](sycl::handler &cgh) {
18
+ cgh.parallel_for <class set_range >(sycl::range<1 >{16 },
19
+ [=](sycl::id<1 > idx) {});
20
+ });
21
+ return 0 ;
22
+ }
Original file line number Diff line number Diff line change
1
+ // REQUIRES: system-linux
1
2
// / Verify same set of sycl-post-link options generated for old and new offloading model
2
3
// Test for JIT compilation
3
4
// RUN: %clangxx --target=x86_64-unknown-linux-gnu -fsycl --offload-new-driver \
You can’t perform that action at this time.
0 commit comments