Add HIP_PATH to dll search directories for windows users.
This commit is contained in:
parent
2b0d3f36fa
commit
92284f32cb
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ def _load_shared_library(lib_base_name: str):
|
||||||
if "CUDA_PATH" in os.environ:
|
if "CUDA_PATH" in os.environ:
|
||||||
os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"], "bin"))
|
os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"], "bin"))
|
||||||
os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"], "lib"))
|
os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"], "lib"))
|
||||||
|
if "HIP_PATH" in os.environ:
|
||||||
|
os.add_dll_directory(os.path.join(os.environ["HIP_PATH"], "bin"))
|
||||||
|
os.add_dll_directory(os.path.join(os.environ["HIP_PATH"], "lib"))
|
||||||
cdll_args["winmode"] = ctypes.RTLD_GLOBAL
|
cdll_args["winmode"] = ctypes.RTLD_GLOBAL
|
||||||
|
|
||||||
# Try to load the shared library, handling potential errors
|
# Try to load the shared library, handling potential errors
|
||||||
|
|
Loading…
Reference in a new issue