Skip to content

tcgen05 examples and book chapters incorrectly claim sm_120 support #1194

Closed

Description

@pedrozaz

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 lists sm_100/sm_120 under tcgen05 (Blackwell).
  • src/main.rs:27: Crate doc claims //! NOTE: tcgen05 is Blackwell-only (sm_100/sm_120).
  • src/main.rs:799: Warning print says tcgen05 requires sm_100/sm_120 (Blackwell) or newer!.
  • src/main.rs:856, 864: verify_ptx_only() invokes ptxas -arch=sm_120a to validate generated tcgen05 PTX, which fails because sm_120a rejects tcgen05 instructions.

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 shows GPU Compute Capability: sm_120.
  • README.md:144, 152: Warning sample and hardware requirements list sm_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 says tcgen05 requires sm_100/sm_120 (Blackwell) or newer!.
    (Note: this directly contradicts lines 266–270 in the same file, which correctly state tcgen05 requires sm_100 (datacenter Blackwell only) and consumer Blackwell has no tcgen05).
  • src/main.rs:563, 571: verify_ptx_only() invokes ptxas -arch=sm_120a to validate tcgen05 PTX.

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: The Tier 3: raw hardware table maps tcgen05, CLC, and TMEM to sm_120 (Blackwell) instead of sm_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):

  1. 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.sync instruction set."

  1. cuda-oxide-book/advanced/warp-level-programming.md:194-197:

"They are not available on sm_110a or sm_120a, so consumer Blackwell is out."

  1. crates/rustc-codegen-cuda/README.md:107-108:

"(tcgen05 and cta_group TMA multicast need sm_100a, which a consumer sm_120 lacks)."

  1. 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"

  1. 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_120a fail the tcgen05 execution contract.

Activity

  1. changed the title [-]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[/+] on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions