2121from numba .cuda .cudadrv .driver import locate_driver_and_loader , load_driver
2222from numba .cuda .cudadrv .error import CudaSupportError
2323from numba .core import config
24- from cuda import pathfinder
2524
2625
2726if sys .platform == "win32" :
3635
3736
3837def get_libdevice ():
39- # libdevice
4038 d = get_cuda_paths ()
4139 paths = d ["libdevice" ].info
4240 return paths
@@ -57,7 +55,6 @@ def get_cudalib(lib, static=False):
5755 if lib in {"nvrtc" , "nvvm" }:
5856 return get_cuda_paths ()[lib ].info
5957 else :
60- # cudart, cudadevrt
6158 dir_type = "static_cudalib_dir" if static else "cudalib_dir"
6259 libdir = get_cuda_paths ()[dir_type ].info
6360
@@ -72,7 +69,6 @@ def get_cuda_include_dir():
7269 Note that this does not list the `CUDA_INCLUDE_PATH` entry in user
7370 configuration.
7471 """
75- # CUDA headers
7672 return get_cuda_paths ()["include_dir" ].info
7773
7874
@@ -95,11 +91,10 @@ def check_static_lib(path):
9591
9692
9793def _get_source_variable (lib , static = False ):
98- # remove? only used in test()
9994 if lib == "nvvm" :
100- return pathfinder . load_nvidia_dynamic_lib ( lib ). found_via
95+ return get_cuda_paths ()[ "nvvm" ]. by
10196 elif lib == "nvrtc" :
102- return pathfinder . load_nvidia_dynamic_lib ( lib ). found_via
97+ return get_cuda_paths ()[ "nvrtc" ]. by
10398 elif lib == "libdevice" :
10499 return get_cuda_paths ()["libdevice" ].by
105100 elif lib == "include_dir" :
0 commit comments