Skip to content

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

@ZzEeKkAa

Description

@ZzEeKkAa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cuda.pathfinderEverything related to the cuda.pathfinder moduletriageNeeds the team's attention

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions