We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 936a125 commit 11cfd81Copy full SHA for 11cfd81
1 file changed
source/lib/ze_libapi.cpp
@@ -125,7 +125,7 @@ zeDriverGet(
125
if(ze_lib::destruction) {
126
return ZE_RESULT_ERROR_UNINITIALIZED;
127
}
128
- if (ze_lib::context->zeDdiTable == nullptr) {
+ if (!ze_lib::context || ze_lib::context->zeDdiTable == nullptr) {
129
130
131
static const ze_pfnDriverGet_t pfnGet = [&result] {
0 commit comments