[FEA]: Factor the generated CUDA shim into an ABI mode shared library

Aperta
#3,253 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@brandon-b-miller ci sta già lavorando.

Dal 27/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

cuda.bindings feature P0
Is this a duplicate?
Area

cuda.bindings

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

I'd like to be able to repeat the cuda.h free, cuGetProcAddress approach of accessing the driver API in another library.

Describe the solution you'd like

A header-free C layer that dlopens libcuda.so.1, resolves entry points through cuGetProcAddress, caches the function pointers, and exposes ABI-reduced C symbols. This is a pattern here and other places and should have a single source of truth.

Today this is behind private cdef functions inside a Python extension rather than a C ABI another shared library or JIT can call.

Describe alternatives you've considered

Rolling another copy again, which seems suboptimal.

Additional context

No response

Lingua principale
Cython
Stelle
3.4k
Fork
353
Merge medio
2g 3h
PR unite (30g)
163

Preparare l'ambiente

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.

Altre issue di NVIDIA/cuda-python

Tutte le issue di NVIDIA/cuda-python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.