Skip to content

Commit c6b0ff1

Browse files
authored
[SYCL][NATIVECPU] Check NativeCPU libclc for Windows (#14632)
Addresses #14500 to check that the NativeCPU libclc was built on Windows.
1 parent 73b24dd commit c6b0ff1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// TODO: move this to clang/Driver once Native CPU is enabled in CI
2+
// REQUIRES: native_cpu && linux
3+
// RUN: %clang -### -fsycl -fsycl-targets=native_cpu -target x86_64-unknown-linux-gnu %s 2> %t.ncpu.out
4+
// RUN: FileCheck %s --input-file %t.ncpu.out
5+
// CHECK: {{(\\|/)}}remangled-l64-signed_char.libspirv-x86_64-unknown-linux-gnu.bc"

sycl/test/check_device_code/native_cpu/sycl-native-cpu-libclc.cpp renamed to sycl/test/check_device_code/native_cpu/sycl-native-cpu-libclc-windows.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// TODO: move this to clang/Driver once Native CPU is enabled in CI
2-
// REQUIRES: native_cpu
3-
// TODO: currently disabled on Windows, but could work on Windows if Linux
4-
// libraries are found
5-
// UNSUPPORTED: (windows)
6-
// RUN: %clang -### -fsycl -fsycl-targets=native_cpu -target x86_64-unknown-linux-gnu %s 2> %t.ncpu.out
7-
// RUN: FileCheck %s --input-file %t.ncpu.out
8-
// CHECK: {{(\\|/)}}remangled-l64-signed_char.libspirv-x86_64-unknown-linux-gnu.bc"
2+
// REQUIRES: native_cpu && windows
93

104
// Check that l32 variant is selected for Windows
115
// RUN: %clang -### -fsycl -fsycl-targets=native_cpu -target x86_64-windows %s 2> %t-win.ncpu.out

0 commit comments

Comments
 (0)