NVIDIA / NVIDIA/cuda-python

[FEA]: Enhance `load_nvidia_dynamic_lib` error message if a library cannot be found

Open
#851 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cuda.pathfinder feature
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

Is this a duplicate?
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.