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

未關閉
#3,206 1 則留言 0 個 reaction 已指派 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 小時
30 天內合併 PR
163

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/cuda-python 的其他 Issue

查看 NVIDIA/cuda-python 的全部 Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。