Skip to content

Commit 56ae2b7

Browse files
committed
add DLL directory for oneapi dependencies
1 parent fba57c6 commit 56ae2b7

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
@@ -238,6 +238,10 @@ def _load_backend_lib(self, _backend_type: BackendType) -> None:
238238
try:
239239
if VERBOSE_LOADS:
240240
print(f"Attempting to load {lib_name}")
241+
242+
# make additional dependencies available for oneapi backend on windows
243+
if platform.system() == _SupportedPlatforms.windows.value and _backend_type == BackendType.oneapi:
244+
os.add_dll_directory(os.path.dirname(lib_name))
241245
ctypes.cdll.LoadLibrary(str(lib_name))
242246
self._backend_type = _backend_type
243247
self._clibs[_backend_type] = ctypes.CDLL(str(lib_name))

0 commit comments

Comments
 (0)