Skip to content

Commit 7f56f01

Browse files
use pathfinder naively for dynamic libs
1 parent 8734e07 commit 7f56f01

File tree

1 file changed

+3
-1
lines changed
  • numba_cuda/numba/cuda/cudadrv

1 file changed

+3
-1
lines changed

numba_cuda/numba/cuda/cudadrv/libs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def get_cudalib(lib, static=False):
5151
loader's search mechanism.
5252
"""
5353
if lib in {"nvrtc", "nvvm"}:
54-
return get_cuda_paths()[lib].info or _dllnamepattern % lib
54+
from cuda.bindings import path_finder
55+
56+
return path_finder._load_nvidia_dynamic_library(lib).abs_path
5557
else:
5658
dir_type = "static_cudalib_dir" if static else "cudalib_dir"
5759
libdir = get_cuda_paths()[dir_type].info

0 commit comments

Comments
 (0)