Skip to content

Commit d1fbdc4

Browse files
committed
Use any-device-is- in requires lines
1 parent 455e9bf commit d1fbdc4

File tree

15 files changed

+35
-35
lines changed

15 files changed

+35
-35
lines changed

sycl/test-e2e/AOT/multiple-devices.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: opencl-aot, ocloc, cpu, gpu, accelerator
9+
// REQUIRES: opencl-aot, ocloc, any-device-is-cpu, any-device-is-gpu, any-device-is-accelerator
1010
// UNSUPPORTED: cuda
1111
// CUDA is not compatible with SPIR.
1212

sycl/test-e2e/AddressSanitizer/invalid-argument/bad-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: linux, (gpu && level_zero), cpu
1+
// REQUIRES: linux, (gpu && level_zero), any-device-is-cpu
22
// RUN: %{build} %device_asan_flags -DMALLOC_DEVICE -O2 -g -o %t
33
// RUN: env SYCL_PREFER_UR=1 UR_LAYER_ASAN_OPTIONS="detect_kernel_arguments:1" %{run} not %t 2>&1 | FileCheck --check-prefixes CHECK,CHECK-DEVICE %s
44

sycl/test-e2e/FilterSelector/filter_list_cpu_gpu_acc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===---------------------------------------------------------------------===//
88

9-
// REQUIRES: cpu, gpu, accelerator
9+
// REQUIRES: any-device-is-cpu, any-device-is-gpu, any-device-is-accelerator
1010

1111
// RUN: %clangxx -fsycl %S/Inputs/filter_list_queries.cpp -o %t.out
1212

sycl/test-e2e/FilterSelector/select_device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Checks that no device is selected when no device of desired type is
1212
// available.
1313
//
14-
// REQUIRES: cpu,gpu,accelerator
14+
// REQUIRES: any-device-is-cpu, any-device-is-gpu, any-device-is-accelerator
1515

1616
#include <iostream>
1717

sycl/test-e2e/FilterSelector/select_device_opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Checks that no device is selected when no device of desired type is
77
// available.
88
//
9-
// REQUIRES: opencl,gpu,cpu,accelerator
9+
// REQUIRES: any-device-is-opencl, any-device-is-gpu, any-device-is-cpu, any-device-is-accelerator
1010

1111
#include "../helpers.hpp"
1212
#include <iostream>

sycl/test-e2e/OneapiDeviceSelector/cpu_gpu_acc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: cpu, gpu, accelerator, opencl
1+
// REQUIRES: any-device-is-cpu, any-device-is-gpu, any-device-is-accelerator, any-device-is-opencl
22

33
// RUN: %{build} -o %t.out
44

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// REQUIRES: hip_amd, opencl, gpu, cpu
1+
// REQUIRES: hip_amd, any-device-is-opencl, any-device-is-gpu, any-device-is-cpu
22

33
// RUN: %clangxx -fsycl -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx906 -fsycl-targets=amdgcn-amd-amdhsa %S/Inputs/is_compatible_with_env.cpp -o %t.out
44

5-
// RUN: env ONEAPI_DEVICE_SELECTOR=hip:gpu %{run} %t.out
6-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run} not %t.out
7-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run} not %t.out
5+
// RUN: env ONEAPI_DEVICE_SELECTOR=hip:gpu %{run-unfiltered-devices} %t.out
6+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run-unfiltered-devices} not %t.out
7+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} not %t.out
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// REQUIRES: cuda, opencl, gpu, cpu
1+
// REQUIRES: any-device-is-cuda, any-device-is-opencl, any-device-is-gpu, any-device-is-cpu
22

33
// RUN: %clangxx -fsycl -fsycl-targets=nvptx64-nvidia-cuda %S/Inputs/is_compatible_with_env.cpp -o %t.out
44

5-
// RUN: env ONEAPI_DEVICE_SELECTOR=cuda:gpu %{run} %t.out
6-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run} not %t.out
7-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run} not %t.out
5+
// RUN: env ONEAPI_DEVICE_SELECTOR=cuda:gpu %{run-unfiltered-devices} %t.out
6+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run-unfiltered-devices} not %t.out
7+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} not %t.out
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// REQUIRES: ocloc, level_zero, gpu, cpu
1+
// REQUIRES: ocloc, any-device-is-level_zero, any-device-is-gpu, any-device-is-cpu
22

33
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga,spir64_gen -Xsycl-target-backend "-device *" %S/Inputs/is_compatible_with_env.cpp -o %t.out
44

5-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run} not %t.out
6-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:fpga %{run} %t.out
7-
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run} %t.out
8-
// RUN: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu %{run} %t.out
5+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} not %t.out
6+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:fpga %{run-unfiltered-devices} %t.out
7+
// RUN: env ONEAPI_DEVICE_SELECTOR=opencl:gpu %{run-unfiltered-devices} %t.out
8+
// RUN: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu %{run-unfiltered-devices} %t.out

sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_spir64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: cuda, opencl, gpu, cpu
1+
// REQUIRES: any-device-is-cuda, any-device-is-opencl, any-device-is-gpu, any-device-is-cpu
22

33
// RUN: %clangxx -fsycl -fsycl-targets=spir64 %S/Inputs/is_compatible_with_env.cpp -o %t.out
44

0 commit comments

Comments
 (0)