Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pycuda/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations


VERSION = (2025, 1, 2)
VERSION = (2026, 1)
VERSION_STATUS = ""
VERSION_TEXT = ".".join(str(x) for x in VERSION) + VERSION_STATUS
9 changes: 7 additions & 2 deletions pycuda/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ def _search_on_path(filenames):


def _add_cuda_libdir_to_dll_path():
from os.path import dirname, join
from os.path import dirname, exists, join

cuda_path = os.environ.get("CUDA_PATH")

if cuda_path is not None:
os.add_dll_directory(join(cuda_path, "bin"))
# CUDA 13.0+ use bin/x64/ as dir
lib_dir = join(cuda_path, "bin", "x64")
if exists(lib_dir):
os.add_dll_directory(lib_dir)
else:
os.add_dll_directory(join(cuda_path, "bin"))
return

nvcc_path = _search_on_path(["nvcc.exe"])
Expand Down