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 72bc1d4 commit 4320ea1Copy full SHA for 4320ea1
source/adapters/level_zero/platform.cpp
@@ -55,7 +55,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urPlatformGet(
55
// We must only initialize the driver once, even if urPlatformGet() is called
56
// multiple times. Declaring the return value as "static" ensures it's only
57
// called once.
58
- static ze_result_t ZeResult = ZE_CALL_NOCHECK(zeInit, (0));
+ static ze_result_t ZeResult =
59
+ ZE_CALL_NOCHECK(zeInit, (ZE_INIT_FLAG_GPU_ONLY));
60
61
// Absorb the ZE_RESULT_ERROR_UNINITIALIZED and just return 0 Platforms.
62
if (ZeResult == ZE_RESULT_ERROR_UNINITIALIZED) {
0 commit comments