-
Notifications
You must be signed in to change notification settings - Fork 243
Open
Labels
cuda.pathfinderEverything related to the cuda.pathfinder moduleEverything related to the cuda.pathfinder modulefeatureNew feature or requestNew feature or request
Description
Is this a duplicate?
- I confirmed there appear to be no duplicate issues for this request and that I agree to the Code of Conduct
Area
cuda.pathfinder
Is your feature request related to a problem? Please describe.
This is a request for a behavior change.
Currently, when encountering a library that we haven't plumbed in support for, we fall back to doing a system search, which can be surprising / confusing.
For example, currently we have (Linux):
candidate_sonames.append(f"lib{libname}.so")
Current behavior (note: cupti is not supported):
python -c 'from cuda import pathfinder; print(pathfinder.load_nvidia_dynamic_lib("cupti"))'
LoadedDL(abs_path='/usr/local/cuda/targets/sbsa-linux/lib/libcupti.so', was_already_loaded_from_elsewhere=False, _handle_uint=1073584928, found_via='system-search')
The request boils down to removing that line, which then leads to:
cuda.pathfinder._dynamic_libs.load_dl_common.DynamicLibNotFoundError: Failure finding "libcupti.so":
The situation is different under Windows. Figuring out all details for all situations (Linux, Windows, site-packages, conda, CUDA_HOME, system-search) needs more work.
Describe the solution you'd like
TBD
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cuda.pathfinderEverything related to the cuda.pathfinder moduleEverything related to the cuda.pathfinder modulefeatureNew feature or requestNew feature or request