We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a529440 commit a9746c2Copy full SHA for a9746c2
source/adapters/level_zero/device.cpp
@@ -66,9 +66,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGet(
66
// ZE_RESULT_SUCCESS or ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
67
auto errc = ZE_CALL_NOCHECK(zeDeviceGetRootDevice,
68
(D->ZeDevice, &RootDev));
69
- assert(errc == ZE_RESULT_SUCCESS ||
70
- errc == ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
71
- return RootDev != nullptr;
+ return (errc == ZE_RESULT_SUCCESS && RootDev != nullptr);
72
});
73
for (auto &D : Platform->URDevicesCache) {
74
// Only ever return root-devices from urDeviceGet, but the
0 commit comments