Repository navigation
Description
Description
tcgen_05instructions and Tensor Memory (TMEM) are architectural features exclusive to Datacenter Blackwell (sm_100a, sm_101a, sm_103a, sm_110a). Consumer/workstation Blackwell (sm_120, sm_120a, sm_121a such as GeForce RTX 50 series) uses register-based mma.sync instructions and does not implement TMEM or the tcgen_05 instruction set.
While several parts of the codebase already document and enforce this distinction correctly (e.g. cuda-oxide-book/advanced/matrix-multiply-accelerators.md, crates/rustc-codegen-cuda/README.md, cargo-oxide and gemm_sol_final), the two tcgen_05 standalone examples (tcgen_05 and tcgen_05_matmul), cuda_device::tcgen05 rustdoc, and the-safety-model.md in the book incorrectly claim sm_120 support and invoke ptxas -arch=sm_120a for fallback validation, which ptxas rejects.
Inconsistencies
1. crates/rustc-codegen-cuda/examples/tcgen05
README.md:155: Lists- **Required GPU**: Blackwell B100, B200 or newer (sm_100/sm_120).README.md:163: Comparison table listssm_100/sm_120undertcgen05 (Blackwell).src/main.rs:27: Crate doc claims//! NOTE: tcgen05 is Blackwell-only (sm_100/sm_120).src/main.rs:799: Warning print saystcgen05 requires sm_100/sm_120 (Blackwell) or newer!.src/main.rs:856, 864:verify_ptx_only()invokesptxas -arch=sm_120ato validate generatedtcgen05PTX, which fails becausesm_120arejectstcgen05instructions.
2. crates/rustc-codegen-cuda/examples/tcgen05_matmul
README.md:107: Section title reads### On Blackwell (sm_100/sm_120):.README.md:112: Expected output showsGPU Compute Capability: sm_120.README.md:144, 152: Warning sample and hardware requirements listsm_100/sm_120.src/main.rs:31: Header doc states//! Requirements: Blackwell GPU (sm_100/sm_120) with CUDA 12.8+.src/main.rs:249: Warning saystcgen05 requires sm_100/sm_120 (Blackwell) or newer!.
(Note: this directly contradicts lines 266–270 in the same file, which correctly statetcgen05 requires sm_100 (datacenter Blackwell only)andconsumer Blackwell has no tcgen05).src/main.rs:563, 571:verify_ptx_only()invokesptxas -arch=sm_120ato validatetcgen05PTX.
3. crates/cuda-device/src/tcgen05.rs
src/tcgen05.rs:74: Under# Hardware Support, lists- **sm_120/sm_120a**: RTX 5090 (Consumer).
4. cuda-oxide-book/gpu-safety/the-safety-model.md
the-safety-model.md:537, 540, 541: TheTier 3: raw hardwaretable mapstcgen05,CLC, andTMEMtosm_120 (Blackwell)instead ofsm_100a/ Datacenter Blackwell.
Existing Canonical References in the Codebase
For reference, the following locations already correctly distinguish Datacenter Blackwell (sm_100a) from Consumer Blackwell (sm_120):
cuda-oxide-book/advanced/matrix-multiply-accelerators.md:342-344:
"tcgen05 is only available on Blackwell datacenter GPUs (SM 100a). Consumer Blackwell (SM 120) uses the older
mma.syncinstruction set."
cuda-oxide-book/advanced/warp-level-programming.md:194-197:
"They are not available on
sm_110aorsm_120a, so consumer Blackwell is out."
crates/rustc-codegen-cuda/README.md:107-108:
"(tcgen05 and cta_group TMA multicast need sm_100a, which a consumer sm_120 lacks)."
crates/cargo-oxide/src/commands/codegen_env.rs:408-410:
"tcgen05 / cta_group TMA multicast need sm_100a, which a consumer sm_120 GPU lacks"
crates/rustc-codegen-cuda/examples/gemm_sol_final/src/main.rs:520-522, 1160-1185:can_execute_tcgen05_ptx()explicitly matches only(10, 0) | (10, 1) | (10, 3) | (11, 0)and unit tests assert that(12, 0)and.target sm_120afail the tcgen05 execution contract.
Activity
[-]docs: align tcgen05 hardware support claims and ptxas validation targets with datacenter-only (sm_100a) requirement[/-][+]`tcgen05` examples and book chapters incorrectly claim `sm_120` support[/+]