File tree 5 files changed +7
-3
lines changed
check_device_code/native_cpu
5 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: native_cpu_be
1
+ // REQUIRES: native_cpu_ock
2
2
// RUN: %clangxx -fsycl-device-only -fsycl-targets=native_cpu -Xclang -sycl-std=2020 -mllvm -sycl-opt -mllvm -inline-threshold=500 -S -emit-llvm -o %t_temp.ll %s
3
3
// RUN: %clangxx -O2 -mllvm -sycl-native-cpu-backend -S -emit-llvm -o - %t_temp.ll | FileCheck %s --check-prefix=CHECK-DEFAULT
4
4
// RUN: %clangxx -O2 -mllvm -sycl-native-cpu-backend -mllvm -sycl-native-cpu-vecz-width=16 -S -emit-llvm -o - %t_temp.ll | FileCheck %s --check-prefix=CHECK-16
Original file line number Diff line number Diff line change 159
159
if config .native_cpu_be == "ON" :
160
160
config .available_features .add ("native_cpu_be" )
161
161
162
+ if config .native_cpu_ock == "ON" :
163
+ config .available_features .add ("native_cpu_ock" )
164
+
162
165
if "nvptx64-nvidia-cuda" in triple :
163
166
llvm_config .with_system_environment ("CUDA_PATH" )
164
167
config .available_features .add ("cuda" )
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ config.hip_be = '@SYCL_BUILD_PI_HIP@'
31
31
config.opencl_be = '@SYCL_BUILD_PI_OPENCL@'
32
32
config.level_zero_be = '@SYCL_BUILD_PI_LEVEL_ZERO@'
33
33
config.native_cpu_be = '@SYCL_BUILD_NATIVE_CPU@'
34
+ config.native_cpu_ock = '@NATIVECPU_USE_OCK@'
34
35
config.sycl_preview_lib_enabled = '@SYCL_ENABLE_MAJOR_RELEASE_PREVIEW_LIB@'
35
36
36
37
import lit.llvm
Original file line number Diff line number Diff line change 1
- // REQUIRES: native_cpu_be
1
+ // REQUIRES: native_cpu_ock
2
2
// RUN: %clangxx -DFILE1 -fsycl -fsycl-targets=native_cpu %s -g -c -o %t1.o
3
3
// RUN: %clangxx -DFILE2 -fsycl -fsycl-targets=native_cpu %s -g -c -o %t2.o
4
4
// RUN: %clangxx -fsycl -fsycl-targets=native_cpu %t1.o %t2.o -g -o %t
Original file line number Diff line number Diff line change 1
- // REQUIRES: native_cpu_be
1
+ // REQUIRES: native_cpu_ock
2
2
// RUN: %clangxx -fsycl -fsycl-targets=native_cpu %s -o %t
3
3
// RUN: env ONEAPI_DEVICE_SELECTOR="native_cpu:cpu" %t
4
4
You can’t perform that action at this time.
0 commit comments