Skip to content

Commit 8ccc179

Browse files
committed
Directly use get_backend() from sycl_device
1 parent 0624734 commit 8ccc179

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libsyclinterface/source/dpctl_sycl_device_interface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ DPCTLDevice_GetBackend(__dpctl_keep const DPCTLSyclDeviceRef DRef)
184184
DPCTLSyclBackendType BTy = DPCTLSyclBackendType::DPCTL_UNKNOWN_BACKEND;
185185
auto D = unwrap<device>(DRef);
186186
if (D) {
187-
BTy = DPCTL_SyclBackendToDPCTLBackendType(
188-
D->get_platform().get_backend());
187+
BTy = DPCTL_SyclBackendToDPCTLBackendType(D->get_backend());
189188
}
190189
return BTy;
191190
}

0 commit comments

Comments
 (0)