Skip to content

Commit 6a28d07

Browse files
committed
Make check for unknown device explicit
1 parent 52f8e3f commit 6a28d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsyclinterface/source/dpctl_sycl_platform_interface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ DPCTLPlatform_GetDevices(__dpctl_keep const DPCTLSyclPlatformRef PRef,
294294
}
295295

296296
// handle unknown device
297-
if (!DTy) {
297+
if (DTy == DPCTLSyclDeviceType::DPCTL_UNKNOWN_DEVICE) {
298298
return wrap<vecTy>(DevicesVectorPtr);
299299
}
300300

0 commit comments

Comments
 (0)