Skip to content

Commit 61d7be6

Browse files
committed
oneapi windows fix for not loading some mkl_core correctly
1 parent 56ae2b7 commit 61d7be6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arrayfire_wrapper/_backend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ def _load_backend_lib(self, _backend_type: BackendType) -> None:
242242
# make additional dependencies available for oneapi backend on windows
243243
if platform.system() == _SupportedPlatforms.windows.value and _backend_type == BackendType.oneapi:
244244
os.add_dll_directory(os.path.dirname(lib_name))
245+
246+
# TODO: temporary fix for mkl_core not getting loaded correctly
247+
ctypes.cdll.LoadLibrary('mkl_core.2.dll')
248+
245249
ctypes.cdll.LoadLibrary(str(lib_name))
246250
self._backend_type = _backend_type
247251
self._clibs[_backend_type] = ctypes.CDLL(str(lib_name))

0 commit comments

Comments
 (0)