Skip to content

Commit ad85e04

Browse files
Removed DPCTL_HOST and DPCTL_HOST_DEVICE
1 parent cee5afe commit ad85e04

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

libsyclinterface/helper/source/dpctl_utils_helper.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ info::device_type DPCTL_DPCTLDeviceTypeToSyclDeviceType(DPCTLSyclDeviceType DTy)
128128
return info::device_type::custom;
129129
case DPCTLSyclDeviceType::DPCTL_GPU:
130130
return info::device_type::gpu;
131-
case DPCTLSyclDeviceType::DPCTL_HOST_DEVICE:
132-
return info::device_type::host;
133131
default:
134132
throw std::runtime_error("Unsupported device type");
135133
}
@@ -150,8 +148,6 @@ DPCTLSyclDeviceType DPCTL_SyclDeviceTypeToDPCTLDeviceType(info::device_type D)
150148
return DPCTLSyclDeviceType::DPCTL_CUSTOM;
151149
case info::device_type::gpu:
152150
return DPCTLSyclDeviceType::DPCTL_GPU;
153-
case info::device_type::host:
154-
return DPCTLSyclDeviceType::DPCTL_HOST_DEVICE;
155151
default:
156152
return DPCTLSyclDeviceType::DPCTL_UNKNOWN_DEVICE;
157153
}

libsyclinterface/include/dpctl_sycl_enum_types.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ typedef enum
3939
{
4040
// clang-format off
4141
DPCTL_CUDA = 1 << 16,
42-
DPCTL_HOST = 1 << 17,
43-
DPCTL_LEVEL_ZERO = 1 << 18,
44-
DPCTL_OPENCL = 1 << 19,
42+
DPCTL_LEVEL_ZERO = 1 << 17,
43+
DPCTL_OPENCL = 1 << 18,
4544
DPCTL_UNKNOWN_BACKEND = 0,
4645
DPCTL_ALL_BACKENDS = ((1<<5)-1) << 16
4746
// clang-format on
@@ -62,7 +61,6 @@ typedef enum
6261
DPCTL_CPU = 1 << 2,
6362
DPCTL_CUSTOM = 1 << 3,
6463
DPCTL_GPU = 1 << 4,
65-
DPCTL_HOST_DEVICE = 1 << 5,
6664
DPCTL_ALL = (1 << 6) - 1,
6765
DPCTL_UNKNOWN_DEVICE = 0
6866
// clang-format on

libsyclinterface/tests/test_sycl_device_interface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ TEST_P(TestDPCTLSyclDeviceInterface, ChkGetBackend)
8181
switch (BTy) {
8282
case DPCTLSyclBackendType::DPCTL_CUDA:
8383
return true;
84-
case DPCTLSyclBackendType::DPCTL_HOST:
85-
return true;
8684
case DPCTLSyclBackendType::DPCTL_LEVEL_ZERO:
8785
return true;
8886
case DPCTLSyclBackendType::DPCTL_OPENCL:

libsyclinterface/tests/test_sycl_event_interface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ TEST_F(TestDPCTLSyclEventInterface, CheckEvent_GetBackend)
125125
switch (BTy) {
126126
case DPCTLSyclBackendType::DPCTL_CUDA:
127127
return true;
128-
case DPCTLSyclBackendType::DPCTL_HOST:
129-
return true;
130128
case DPCTLSyclBackendType::DPCTL_LEVEL_ZERO:
131129
return true;
132130
case DPCTLSyclBackendType::DPCTL_OPENCL:

libsyclinterface/tests/test_sycl_platform_interface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ void check_platform_backend(__dpctl_keep const DPCTLSyclPlatformRef PRef)
7070
switch (BTy) {
7171
case DPCTLSyclBackendType::DPCTL_CUDA:
7272
return true;
73-
case DPCTLSyclBackendType::DPCTL_HOST:
74-
return true;
7573
case DPCTLSyclBackendType::DPCTL_LEVEL_ZERO:
7674
return true;
7775
case DPCTLSyclBackendType::DPCTL_OPENCL:

0 commit comments

Comments
 (0)