cuda.pathfinder.find_nvidia_dynamic_lib#
- cuda.pathfinder.find_nvidia_dynamic_lib(libname: str) str#
Return the absolute path to an NVIDIA dynamic library without loading it.
Resolution is performed by running
load_nvidia_dynamic_lib()in a fresh Python subprocess and reporting back the resolved absolute path. The caller’s process does not dlopen / LoadLibrary the library.- Parameters:
libname – Short name of the library (e.g.,
"cufile","nvJitLink","cudart").- Returns:
The absolute path the loader would have used in the caller’s process.
- Raises:
DynamicLibUnknownError – If
libnameis not a recognized library.DynamicLibNotAvailableError – If
libnameis recognized but not supported on this platform.DynamicLibNotFoundError – If the library cannot be located.
Notes
Because resolution happens in a separate process, results may differ from an in-process
load_nvidia_dynamic_libif the caller’s process has DSOs loaded with customRPATHentries or has already loaded a matching library by some other mechanism. The intent is to report the path the loader would pick when not influenced by other DSOs in the caller.