Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit b57e11f

Browse files
authored
[SYCL][CUDA][HIP] Fix device_num.cpp test (#1081)
Fixed device_num.cpp test for CUDA and HIP by adding entries for these two backends to the map from backend to its name.
1 parent 145b113 commit b57e11f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

SYCL/Regression/device_num.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
// RUN: env SYCL_DEVICE_FILTER=2 env TEST_DEV_CONFIG_FILE_NAME=%t1.conf %t.out
66
// RUN: env SYCL_DEVICE_FILTER=3 env TEST_DEV_CONFIG_FILE_NAME=%t1.conf %t.out
77

8-
// The test is using all available BEs but CUDA machine in CI does not have
9-
// functional OpenCL RT
10-
// UNSUPPORTED: cuda || hip
118
// Temporarily disable on L0 due to fails in CI
129
// UNSUPPORTED: level_zero
1310

@@ -29,7 +26,9 @@ const std::map<backend, std::string> BackendStringMap = {
2926
{backend::opencl, "opencl"},
3027
{backend::host, "host"},
3128
{backend::ext_oneapi_level_zero, "ext_oneapi_level_zero"},
32-
{backend::ext_intel_esimd_emulator, "ext_intel_esimd_emulator"}};
29+
{backend::ext_intel_esimd_emulator, "ext_intel_esimd_emulator"},
30+
{backend::ext_oneapi_cuda, "ext_oneapi_cuda"},
31+
{backend::ext_oneapi_hip, "ext_oneapi_hip"}};
3332

3433
std::string getDeviceTypeName(const device &d) {
3534
auto DeviceType = d.get_info<info::device::device_type>();

0 commit comments

Comments
 (0)