NVIDIA / NVIDIA/cuda-python

[FEA] cuda.core: add remaining new NVRTC options to ProgramOptions (CUDA 13.1+)

Open
#2,368 0 comments 0 reactions 1 assignee View on GitHub

@juenglin is already working on this.

Since Jul 24, 2026.

cuda.core feature
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

Summary

ProgramOptions kept pace with NVRTC 12.9 (ofast_compile, frandom_seed, no_cache are all
present), but not with the 13.x option additions:

Option Documented since Note
--warning-as-error (-Werror) 13.1 promote warnings to errors
--Wreorder 13.1 member-initialization-order warning
--enable-tile, --tile-only, --simt-only, --default-tile, --diagnose-implicit-tile-var 13.3 tile compilation — coordinate with #1322 / #1434 rather than adding blind
--use-bundled-headers=<dir> 13.3 scoped in #2363

New options must be version-gated with actionable errors per the mechanism tracked in #337.

Design sketch (draft — needs design-meeting review)

[!IMPORTANT]
Starting point only, not a settled design — review in the cuda.core design meeting.

  • warning_as_error: bool | str | list[str] (bare -Werror vs. -Werror=<kinds> — check the
    exact accepted forms against the 13.x NVRTC docs during implementation).
  • wreorder: bool.
  • Tile flags: hold until the Program-side Tile IR design (#1322) settles, then add as one
    coherent group.

Open questions for the meeting:

  1. Reject unsupported options at ProgramOptions construction or at compile() (per #337)?
  2. Are the tile flags meaningful without the Tile IR output path, or strictly coupled to #1322?

References

-- Leo's bot

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.