Skip to content

Commit 226aed7

Browse files
committed
Add comment to DPCTLPlatform_GetDevices
This comment describes why automatic and custom device type are handled as unknown
1 parent 8fcfc67 commit 226aed7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libsyclinterface/source/dpctl_sycl_platform_interface.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ DPCTLPlatform_GetDevices(__dpctl_keep const DPCTLSyclPlatformRef PRef,
294294
}
295295

296296
// handle unknown device
297+
// custom and automatic are also treated as unknown
298+
// as DPC++ would normally treat as `all`
299+
// see CMPLRLLVM-65826
297300
if (DTy == DPCTLSyclDeviceType::DPCTL_UNKNOWN_DEVICE) {
298301
return wrap<vecTy>(DevicesVectorPtr);
299302
}

0 commit comments

Comments
 (0)