Is this a duplicate?
Area
cuda.bindings
Is your feature request related to a problem? Please describe.
Quoting from a chat:
Someone, somewhere, will want to know the "real" cudart version and not what was used to build cuda-python.
Currently runtime.getLocalRuntimeVersion() is implemented using a direct dlopen() call:
|
handle = dlfcn.dlopen('libcudart.so.12', dlfcn.RTLD_NOW) |
Describe the solution you'd like
The direct dlopen() call should be replaced with a call to path_finder, similar to existing calls, e.g. here:
|
handle = path_finder._load_nvidia_dynamic_library("nvrtc").handle |
|
{{else}} |
|
with gil: |
|
handle = <void*><uintptr_t>path_finder._load_nvidia_dynamic_library("nvrtc").handle |
Describe alternatives you've considered
No response
Additional context
No response
Is this a duplicate?
Area
cuda.bindings
Is your feature request related to a problem? Please describe.
Quoting from a chat:
Currently
runtime.getLocalRuntimeVersion()is implemented using a directdlopen()call:cuda-python/cuda_bindings/cuda/bindings/cyruntime.pyx.in
Line 1887 in 1cb8a6f
Describe the solution you'd like
The direct
dlopen()call should be replaced with a call topath_finder, similar to existing calls, e.g. here:cuda-python/cuda_bindings/cuda/bindings/_bindings/cynvrtc.pyx.in
Lines 52 to 55 in 314060c
Describe alternatives you've considered
No response
Additional context
No response