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

Abierto
#3,253 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@brandon-b-miller ya está trabajando en esto.

Desde el 27/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
Cython
Estrellas
3.4k
Forks
353
Merge medio
2 d 3 h
PR fusionados (30 d)
163

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de NVIDIA/cuda-python

Todos los issues de NVIDIA/cuda-python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.