cuda.core: forward ofast_compile to the NVVM backend once libNVVM supports -Ofast-compile

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

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

@Andy-Jost がすでに取り組んでいます。

2026年10月23日 から。

評価

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

説明

cuda.core enhancement P2

Follow-up to #2954, which rejects ofast_compile on the NVVM backend together with the other NVRTC-only options. This issue tracks forwarding it instead, once libNVVM supports the flag.

What is known (2026-10-23):

  • The libNVVM API documentation lists no -Ofast-compile option.
  • On libNVVM from CUDA 13.4 (nvvm.version() 2.0, IR 2.0.3.2), compiling the textual IR from #2954 with -Ofast-compile=0 succeeds; =min, =mid, and =max return NVVM_ERROR_COMPILATION with the log "parse Can't read textual IR with a Context that discards named Values"; =bogus returns NVVM_ERROR_INVALID_OPTION with "only supports 0, min, mid, or max". So the library knows the flag, and the failure is in the textual-IR parse path.
  • A report in #2954 on CUDA 13.2 (Thor) had all four levels accepted, for textual IR and for bitcode.

Asks:

  1. Check whether -Ofast-compile works for bitcode input on 13.4, and whether the textual-IR failure is a regression.
  2. Once libNVVM documents the flag, forward ofast_compile on NVVM under the same gate as NVRTC (is not None), for the inputs where it works. Replacing today's rejection with a pass-through is not a breaking change.
  3. If the textual-IR failure is a libNVVM defect, file it against libNVVM and link it here.
主要言語
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 を短くまとめたダイジェスト。