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

オープン
#3,253 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@brandon-b-miller がすでに取り組んでいます。

2026年10月27日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
Cython
スター
3.4k
フォーク
353
平均マージ
2日 3時間
マージ済み PR(30日)
163

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA/cuda-python のほかの issue

NVIDIA/cuda-python の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。