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

Aperta
#3,206 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Andy-Jost ci sta già lavorando.

Dal 23/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
Cython
Stelle
3.4k
Fork
353
Merge medio
2g 3h
PR unite (30g)
163

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA/cuda-python

Tutte le issue di NVIDIA/cuda-python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.