cuda.core: forward ofast_compile to the NVVM backend once libNVVM supports -Ofast-compile
维护者通常 1 天内回复
@Andy-Jost 已经在做这个了。
开始于 2026年10月23日。
评估
这个 Issue 还没有评估数据。
描述
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-compileoption. - On libNVVM from CUDA 13.4 (
nvvm.version()2.0, IR 2.0.3.2), compiling the textual IR from #2954 with-Ofast-compile=0succeeds;=min,=mid, and=maxreturnNVVM_ERROR_COMPILATIONwith the log "parse Can't read textual IR with a Context that discards named Values";=bogusreturnsNVVM_ERROR_INVALID_OPTIONwith "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:
- Check whether
-Ofast-compileworks for bitcode input on 13.4, and whether the textual-IR failure is a regression. - Once libNVVM documents the flag, forward
ofast_compileon 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. - 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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/cuda-python 的其他 Issue
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raises可能已有人在做 @Iamsohungrynow 于 5 天前认领。 未关闭bug cuda.core P1
难度 1/5 1 小时以内 新手友好度 86/100
NVIDIA/cuda-python#3505 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte count未关闭triage
难度 2/5 1-3 小时 新手友好度 80/100
NVIDIA/cuda-python#3468 · 3 条评论 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 68/100
NVIDIA/cuda-python#3409 ·
维护者通常 1 天内回复
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRs可能重新可做 @rwgk 于 48 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
NVIDIA/cuda-python#2952 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookup可能已有人在做 @rwgk 于 62 天前认领。 未关闭triage
难度 2/5 1-3 小时 新手友好度 82/100
NVIDIA/cuda-python#2646 · 1 个 reaction ·
维护者通常 1 天内回复