Skip to content

Commit f42b6b8

Browse files
committed
[SYCL] [E2E] fix reenabled tests
1 parent 38d6ee1 commit f42b6b8

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

sycl/test-e2e/Basic/interop/interop_all_backends.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// XFAIL: any-device-is-opencl, any-device-is-cuda, any-device-is-level_zero, gpu-intel-dg2, hip_amd
1+
// XFAIL: any-device-is-opencl, any-device-is-cuda, any-device-is-level_zero
22
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/15819
33
// RUN: %if any-device-is-opencl %{ %{build} -o %t-opencl.out %}
44
// RUN: %if any-device-is-level_zero %{ %{build} -DBUILD_FOR_L0 -o %t-l0.out %}
@@ -12,25 +12,24 @@
1212
using namespace sycl;
1313

1414
#ifdef BUILD_FOR_CUDA
15-
#include <sycl/ext/oneapi/experimental/backend/cuda.hpp>
1615
constexpr auto BACKEND = backend::ext_oneapi_cuda;
1716
using nativeDevice = CUdevice;
1817
using nativeQueue = CUstream;
1918
using nativeEvent = CUevent;
2019
#elif defined(BUILD_FOR_HIP)
2120
#include <sycl/ext/oneapi/backend/hip.hpp>
2221
constexpr auto BACKEND = backend::ext_oneapi_hip;
23-
using nativeDevice = hipDevice_t;
24-
using nativeQueue = hipStream_t;
25-
using nativeEvent = hipEvent_t;
22+
using nativeDevice = device;
23+
using nativeQueue = ihipStream_t;
24+
using nativeEvent = ihipEvent_t;
2625
#elif defined(BUILD_FOR_L0)
2726
constexpr auto BACKEND = backend::ext_oneapi_level_zero;
2827
using nativeDevice = ze_device_handle_t;
2928
using nativeQueue = ze_command_queue_handle_t;
3029
using nativeEvent = ze_event_handle_t;
3130
#else
3231
constexpr auto BACKEND = backend::opencl;
33-
using nativeDevice = cl_device;
32+
using nativeDevice = cl_device_id;
3433
using nativeQueue = cl_command_queue;
3534
using nativeEvent = cl_event;
3635
#endif
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// REQUIRES: ocloc, level_zero, gpu, cpu
1+
// REQUIRES: ocloc, any-device-is-level_zero, any-device-is-gpu, any-device-is-cpu
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga,spir64_gen -Xsycl-target-backend "-device *" %S/Inputs/is_compatible_with_env.cpp -o %t.out
3+
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen -Xsycl-target-backend=spir64_gen "-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:gpu %{run-unfiltered-devices} %t.out
7+
// RUN: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu %{run-unfiltered-devices} %t.out

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"CL_CONFIG_DEVICES",
7979
"SYCL_DEVICE_ALLOWLIST",
8080
"SYCL_CONFIG_FILE_NAME",
81+
"OCL_ICD_VENDORS",
8182
]
8283
)
8384

0 commit comments

Comments
 (0)