Skip to content

Commit ce71e8c

Browse files
committed
Fix windows test fail
Signed-off-by: Arvind Sudarsanam <[email protected]>
1 parent a14cac0 commit ce71e8c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

clang/test/Driver/sycl-post-link-options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: system-linux
12
/// Verify same set of sycl-post-link options generated for old and new offloading model
23
// Test for JIT compilation
34
// RUN: %clangxx --target=x86_64-unknown-linux-gnu -fsycl --offload-new-driver \

0 commit comments

Comments
 (0)