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

Aberta
#3,253 1 comentário 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@brandon-b-miller já está trabalhando nisso.

Desde 27/10/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

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

Linguagem predominante
Cython
Estrelas
3.4k
Forks
353
Merge médio
2d 3h
PRs com merge (30d)
163

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de NVIDIA/cuda-python

Todas as issues de NVIDIA/cuda-python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.