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 摘要。