|
6 | 6 | // |
7 | 7 | //===----------------------------------------------------------------------===// |
8 | 8 |
|
9 | | -// REQUIRES: opencl-aot, ocloc, cpu, gpu, target-spir, opencl-cpu-rt |
| 9 | +// REQUIRES: opencl-aot, ocloc, any-device-is-cpu, any-device-is-gpu, target-spir, opencl-cpu-rt |
10 | 10 |
|
11 | 11 | // Produce a fat object for all targets (generic SPIR-V, CPU, GPU) |
12 | 12 | // RUN: %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64,spir64_gen %S/Inputs/aot.cpp -c -o %t.o |
13 | 13 |
|
14 | 14 | // CPU, GPU |
15 | | -// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %t.o -o %t_cpu_gpu.out |
16 | | -// RUN: %if gpu || cpu %{ %{run} %t_cpu_gpu.out %} |
| 15 | +// RUN: %{run-aux} %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %t.o -o %t_cpu_gpu.out |
| 16 | +// RUN: %{run} %t_cpu_gpu.out |
17 | 17 |
|
18 | 18 | // No AOT-compiled image for CPU |
19 | 19 | // RUN: %clangxx -fsycl -fsycl-targets=spir64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %t.o -o %t_spv_gpu.out |
20 | 20 | // Check that execution on AOT-compatible devices is unaffected |
21 | | -// RUN: %{run} %t_spv_gpu.out |
| 21 | +// RUN: env ONEAPI_DEVICE_SELECTOR="*:gpu" %{run-unfiltered-devices} %t_spv_gpu.out |
22 | 22 |
|
23 | 23 | // No AOT-compiled image for GPU |
24 | | -// RUN: %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64 %t.o -o %t_spv_cpu.out |
| 24 | +// RUN: %{run-aux} %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64 %t.o -o %t_spv_cpu.out |
25 | 25 | // Check that execution on AOT-compatible devices is unaffected |
26 | | -// RUN: %{run} %t_spv_cpu.out |
| 26 | +// RUN: env ONEAPI_DEVICE_SELECTOR="*:cpu" %{run-unfiltered-devices} %t_spv_cpu.out |
27 | 27 |
|
28 | 28 | // No AOT-compiled image for FPGA |
29 | | -// RUN: %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %t.o -o %t_spv_cpu_gpu.out |
| 29 | +// RUN: %{run-aux} %clangxx -fsycl -fsycl-targets=spir64,spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %t.o -o %t_spv_cpu_gpu.out |
30 | 30 | // Check that execution on AOT-compatible devices is unaffected |
31 | 31 | // RUN: %{run} %t_spv_cpu_gpu.out |
0 commit comments