Landing: 1b5948d7141b
Project / Subsystem
gcc / nvptx
Date
2026-04-16
Author
Thomas Schwinge
Commit
1b5948d7141b2651a48f73709d11dd253e1fa689
Source
github
Impact
7/10
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- nvptx
- patch_id
- —
- commit_hash
- 1b5948d7141b2651a48f73709d11dd253e1fa689
- source_type
- github
- headline
- nvptx: Support '-mptx=4.0'
- tldr
- Adds support for PTX version 4.0 to the nvptx backend.
- why_it_matters
- Enables developers to use features and optimizations available in PTX 4.0 when targeting NVIDIA GPUs.
- author
- Thomas Schwinge
- impact_score
- 7
- impact_rationale
- Adds support for a specific PTX version, a user-visible feature.
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • nvptx
- • gpu
- • ptx
- • code generation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-16T00:00:00.000Z
The nvptx backend now supports the ‘-mptx=4.0’ option, allowing developers to target PTX version 4.0. This commit introduces the necessary definitions, adjustments to the compiler options, and documentation updates. A new test case is included to verify the functionality.