Skip to content

Commit 9537331

Browse files
author
Diptorup Deb
authored
Change the way we load level zero DLL on windows. (#636)
1 parent da13887 commit 9537331

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpctl-capi/helper/include/dpctl_dynamic_lib_helper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class DynamicLibHelper final
5555
#ifdef __linux__
5656
_handle = dlopen(libName, flag);
5757
#elif defined(_WIN32) || defined(_WIN64)
58-
_handle = LoadLibraryA(libName);
58+
_handle =
59+
LoadLibraryExA(libName, nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
5960
#endif
6061
}
6162

0 commit comments

Comments
 (0)