Skip to content

docs(examples): correct stale tcgen05 consumer Blackwell claims (carries #1202) - #1206

Merged
nihalpasham merged 2 commits into
mainfrom
triage/1202-tcgen05-docs
Aug 30, 2026
Merged

nihalpasham merged 2 commits into
mainfrom
triage/1202-tcgen05-docs

Conversation

@nihalpasham

Copy link
Copy Markdown
Collaborator

Carries @pedrozaz's docs fix from #1202, rebased past #1203. His commit and authorship are preserved; a maintainer slip while force-pushing the rebase to his branch auto-closed the original PR (details there), so this branch re-hosts it. Fixes #1194.

The problem

Several docs claimed consumer Blackwell (sm_120, RTX 50 series) runs tcgen05. It doesn't; tcgen05 and TMEM exist only on datacenter Blackwell:

docs said:                          hardware reality:
  tcgen05: sm_100/sm_120             tcgen05: sm_100a family only
                                       (sm_100a/sm_101a/sm_103a/sm_110a)
$ ptxas -arch=sm_120a tcgen05.ptx
  error: Instruction 'tcgen05.alloc' not supported on .target 'sm_120a'

@pedrozaz verified the ptxas rejection on a real RTX 5060 Ti.

What this changes (docs only; #1203 already landed the runtime gate)

  • both tcgen05 example READMEs: sm_100a family, explicit "NOT supported: Consumer Blackwell (sm_120)" notes
  • cuda-device tcgen05 rustdoc: drops "sm_120/sm_120a: RTX 5090 (Consumer)", lists the real family incl. sm_101a to match the runtime allowlist
  • book safety-model Tier 3 table: tcgen05/TMEM rows to "sm_100a (Blackwell DC)", CLC row to "sm_100+ (Blackwell)"
  • tcgen05 crate-doc line: "Blackwell datacenter-only (sm_100a)"
  • README "expected output" transcripts re-synced to what the post-Stop opt from building .global lookup tables of shared-memory addresses (invalid PTX under LLVM 23) #1203 code literally prints

What it deliberately does not change

The PR's original runtime half (compute-capability pre-check, ptxas retarget) was superseded by #1203's stronger version on main (loud CUDA_ERROR_INVALID_PTX classification, .target-parsed ptxas arch). Main's code is kept wholesale.

Validation

  • cargo fmt --check clean, book builds with zero warnings
  • diff touches only the five doc sites; both examples' src/main.rs byte-identical to main except one crate-doc comment line
  • transcripts compared line-by-line against every println! in both examples

pedrozaz and others added 2 commits August 30, 2026 14:27
tcgen05/TMEM is a datacenter-Blackwell feature; consumer Blackwell
(sm_120, RTX 50 series) has no TMEM and no tcgen05 instruction set.
Fix every doc site that claimed sm_120 support:

- tcgen05 + tcgen05_matmul READMEs: required GPU is sm_100a, add
  explicit NOT-supported note for consumer Blackwell (sm_120)
- cuda-device tcgen05 rustdoc: drop the "sm_120: RTX 5090" bullet,
  frame the sm_100 TMEM-capable family instead
- book safety-model Tier 3 table: tcgen05/TMEM rows -> sm_100a
  (Blackwell DC), CLC row -> sm_100+ (Blackwell)
- tcgen05 example crate doc: "Blackwell-only (sm_100/sm_120)" ->
  "Blackwell datacenter-only (sm_100a)"

Doc-only slice of PR #1202; the PR's runtime changes were superseded
by the stronger capability gate that landed in #1203.

Signed-off-by: Guilherme Pedroza <[email protected]>
… to family list

- both READMEs showed a "Loading PTX from: ..." line the examples
  never print; transcripts now match the post-#1203 load sequence
- tcgen05_matmul's non-datacenter transcript now quotes the literal
  warning the code prints ("WARNING: tcgen05 requires sm_100
  (datacenter Blackwell)!") plus the full PTX-verification tail
- cuda-device tcgen05 rustdoc family list gains sm_101a: the runtime
  allowlist in the examples accepts cc 10.0 / 10.1 / 10.3 / 11.0, so
  the docs must name all four arches

Signed-off-by: nihalpasham <[email protected]>
@nihalpasham nihalpasham added bug Something isn't working documentation Improvements or additions to documentation intrinsics Device intrinsics and libdevice math mappings cuda-feature A CUDA hardware/toolkit feature (TMA, tcgen05, WGMMA) labels Aug 30, 2026
@nihalpasham
nihalpasham merged commit 529339a into main Aug 30, 2026
52 checks passed
@nihalpasham
nihalpasham deleted the triage/1202-tcgen05-docs branch August 30, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda-feature A CUDA hardware/toolkit feature (TMA, tcgen05, WGMMA) documentation Improvements or additions to documentation intrinsics Device intrinsics and libdevice math mappings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tcgen05 examples and book chapters incorrectly claim sm_120 support

2 participants