Skip to content

Commit 495e7af

Browse files
committed
Prepend CUDA DLL directory to Windows PATH
Signed-off-by: Ashish Karale <[email protected]>
1 parent ddc2a2a commit 495e7af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def add_dll_directory(dll_abs_path: str) -> None:
9696

9797
# Update PATH as a fallback for dependent DLL resolution
9898
curr_path = os.environ.get("PATH")
99-
os.environ["PATH"] = dirpath if curr_path is None else os.pathsep.join((curr_path, dirpath))
99+
os.environ["PATH"] = dirpath if curr_path is None else os.pathsep.join((dirpath, curr_path))
100100

101101

102102
def abs_path_for_dynamic_library(libname: str, handle: ctypes.wintypes.HMODULE) -> str:

0 commit comments

Comments
 (0)