[FEA]: Enhance `load_nvidia_dynamic_lib` error message if a library cannot be found
Nobody has claimed this yet.
- Dominant language
- Cython
- Stars
- 3.4k
- Forks
- 329
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 116
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.
load_nvidia_dynamic_lib does great job in looking for packages, runtime error could be confusing for an end user. It would be nice to have user friendly error if library was not found. For example that is how it is done at nvmath-python: https://github.com/NVIDIA/nvmath-python/blob/main/nvmath/_utils.py#L256-L262
Also some helper function (like runtime_nvidia_library_load_error(library_name:str) ) would be nice so user can add custom wrapper around load_nvidia_dynamic_lib.
Describe the solution you'd like
n/a
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the cuda.pathfinder entry point load_nvidia_dynamic_lib and compare its current failure behavior with nvmath/_utils.py lines 256-262. Determine the missing-library details available at the failure point and whether a reusable runtime_nvidia_library_load_error helper fits the existing API. Done means missing libraries produce a clear user-facing error and the requested wrapper can use the helper.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100