diff --git a/libsyclinterface/source/dpctl_sycl_platform_interface.cpp b/libsyclinterface/source/dpctl_sycl_platform_interface.cpp index 73bef73266..aa450382e9 100644 --- a/libsyclinterface/source/dpctl_sycl_platform_interface.cpp +++ b/libsyclinterface/source/dpctl_sycl_platform_interface.cpp @@ -304,6 +304,15 @@ DPCTLPlatform_GetDevices(__dpctl_keep const DPCTLSyclPlatformRef PRef, return wrap(DevicesVectorPtr); } + DPCTLSyclBackendType BTy = + DPCTL_SyclBackendToDPCTLBackendType(P->get_backend()); + if (DTy == DPCTLSyclDeviceType::DPCTL_CUSTOM && + BTy == DPCTLSyclBackendType::DPCTL_LEVEL_ZERO) + { + // avoid ugly warnings from unified runtime + return wrap(DevicesVectorPtr); + } + try { auto SyclDTy = DPCTL_DPCTLDeviceTypeToSyclDeviceType(DTy); auto Devices = P->get_devices(SyclDTy);