Skip to content

Commit 03cddf2

Browse files
clean
1 parent a0756f7 commit 03cddf2

File tree

1 file changed

+2
-7
lines changed
  • numba_cuda/numba/cuda/cudadrv

1 file changed

+2
-7
lines changed

numba_cuda/numba/cuda/cudadrv/libs.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from numba.cuda.cudadrv.driver import locate_driver_and_loader, load_driver
2222
from numba.cuda.cudadrv.error import CudaSupportError
2323
from numba.core import config
24-
from cuda import pathfinder
2524

2625

2726
if sys.platform == "win32":
@@ -36,7 +35,6 @@
3635

3736

3837
def 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

9793
def _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

Comments
 (0)