NVIDIA / NVIDIA/cuda-python

[FEA]: `if_not_found` flag for all pathfinder APIs?

Offen
#1,954 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@rwgk arbeitet bereits daran.

Seit 24.4.2026.

cuda.pathfinder feature
Vorherrschende Sprache
Cython
Sterne
3.4k
Forks
329
Ø Merge
1 T. 21 Std.
Gemergte PRs (30 T.)
113

Beschreibung

Is this a duplicate?
Area

cuda.pathfinder

Is your feature request related to a problem? Please describe.

If a library / binary / header is not found, the default behavior for pathfinder is to return None. This leaves the exception handling to users. User would either: 1) search on their own, 2) further raise the issue. Writing the custom error message for the library isn't particularly easy (basically directing user to install the right package) so it would be nice to also handle that inside the pathfinder library.

Basically, I suggest a if_not_found={"raise", "return_none"} flag, that either raises or returns None when a library isn't found. When raise is set and a library isn't found, a PathfinderNotFound exception is raised, with specific error message directing user to install the missing package.

Describe the solution you'd like

Mentioned above.

Describe alternatives you've considered

No response

Additional context

No response

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.