Skip to content

[FEA]: Avoid loading non-supported dynamic libraries #1564

@rwgk

Description

@rwgk

Is this a duplicate?

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):

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

Metadata

Metadata

Assignees

Labels

cuda.pathfinderEverything related to the cuda.pathfinder modulefeatureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions