NVIDIA / NVIDIA/cuda-python

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

Aperta
#1,954 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@rwgk ci sta già lavorando.

Dal 24/4/2026.

cuda.pathfinder feature
Lingua principale
Cython
Stelle
3.4k
Fork
329
Merge medio
1g 23h
PR unite (30g)
116

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.