Skip to content

tma_multicast's README still says consumer Blackwell cannot run it, which #668 measured and corrected everywhere else #966

Open

Description

@vyncint

Summary

#668 ("docs(examples): tma_multicast does run on consumer Blackwell", merged 2026-08-06) corrected the tma_multicast example on the strength of your RTX 5090 measurement:

the sm_100a tma_multicast PTX JIT-loads and passes on an RTX 5090, so the "consumer Blackwell does not support TMA multicast" fallback text is outdated

It fixed the two places it found — the module header and the runtime println! — and missed README.md entirely. That file still carries four separate assertions of the claim #668 removed, so the example's own directory now contradicts itself. My PR, my miss; filing rather than fixing blind because the second half below needs a call I cannot make.

The four stale passages

All in crates/rustc-codegen-cuda/examples/tma_multicast/README.md:

1. L116 — heading groups sm_120 with the failing case

### On Consumer Blackwell (sm_120) or Hopper (sm_90):

2. L119-124 — a sample transcript showing a failure you measured as a success

GPU Compute Capability: sm_120

✗ PTX load failed: DriverError(CUDA_ERROR_INVALID_PTX, ...)

  TMA multicast requires sm_100a (Blackwell datacenter: B100/B200/GB200).
  Consumer Blackwell (sm_120) does NOT support multicast.

This is the worst of the four: a reader on a 5090 compares their real output against a documented failure and concludes something is wrong with their setup.

3. L131 — the Hardware Requirements list

- **NOT supported**: Consumer Blackwell (sm_120), Hopper (sm_90/sm_90a)

4. L158-164 — an entire section explaining a mechanism for behaviour that does not occur

## Why sm_100a Only?
... TMA multicast uses the L2 multicast fabric present only in datacenter
Blackwell GPUs. Consumer Blackwell (sm_120) has the same base ISA (sm_100)
but lacks this fabric, so `sm_100a` PTX cannot be JIT-compiled on sm_120.

Not just a wrong claim but a wrong explanation, which is stickier — it gives a reader a reason to disbelieve their own working run.

Against src/main.rs:16-17, which #668 rewrote:

//! - Blackwell (sm_100a or later): datacenter B100/B200/GB200, and reported to
//!   load and run on consumer sm_120 as well

I have no Blackwell hardware, so I am not restating the positive result on my own authority — it is yours, from #668. Happy to send the README patch mirroring #668's wording exactly ("reported to load and run on consumer sm_120") if you want it that way.

Second, separate question: is the Hopper exclusion right?

#668 deliberately kept the "Not supported on Hopper (sm_90) or earlier" half, and I am not asserting it is wrong — but the catalog disagrees with it, and I would rather ask than guess.

The example imports and calls exactly one multicast intrinsic (src/main.rs:38, used at :101):

use cuda_device::tma::{TmaDescriptor, cp_async_bulk_tensor_2d_g2s_multicast};

For that intrinsic, intrinsics/catalog.json records the LLVM selection predicates as:

"source_record": "TMA_G2S_TILE_CG0_2D_MC",
"predicates": [
  "Subtarget->getPTXVersion() >= 80",
  "Subtarget->getSmVersion() >= 90"
]

and intrinsics/generated-reference.md:100 renders it as PTX 8.0 on sm_90+. The catalog clearly can express the stricter floor — the sibling variant one line down reads:

Intrinsic Availability (generated-reference.md)
cp_async_bulk_tensor_2d_g2s_multicast (what the example calls) PTX 8.0 on sm_90+
cp_async_bulk_tensor_2d_g2s_multicast_cg2 PTX 8.6 on sm_100a or sm_101a or sm_103a or sm_110a

Meanwhile the example emits .version 8.6 / .target sm_100a (tma_multicast.ptx:5-6), and gates at run time on if major < 10 (src/main.rs:154), which skips Hopper unconditionally.

So one of these is off, and they point in opposite directions:

  • If multicast really is Blackwell-only, the catalog's sm_90+ availability for cp_async_bulk_tensor_2d_g2s_multicast is too permissive — and that record feeds codegen and the generated reference, not just prose.
  • If the instruction genuinely is sm_90+, then what excludes Hopper here is the example's own .target sm_100a, not the instruction, and both the README and the major < 10 gate are over-restrictive.

I have no Hopper and no Blackwell, so I cannot settle this and will not guess at a hardware result. You have both an RTX 5090 and, from #338, an interest in the SM90/SM90a intrinsic surface — a single cargo oxide run tma_multicast on a Hopper part would decide it.

Scope note

Purely a documentation/metadata inconsistency; no code path changes. No open PR touches crates/rustc-codegen-cuda/examples/tma_multicast/ (checked by file against all 29 open PRs). I am happy to take the README fix, the catalog change, or both once you have said which way the Hopper question falls.

Activity

  1. nihalpasham commented on Aug 28, 2026

    @nihalpasham
    Collaborator

    The README half landed via #1172: real sm_120 transcript, no more self-contradiction with main.rs. What stays open here is the Hopper question: whether an sm_90-targeted build of this example runs on real Hopper hardware.

  2. nihalpasham commented on Sep 3, 2026

    @nihalpasham
    Collaborator

    Gist: for the Hopper half, the ISA allows it; the example forbids it.

    • cp.async.bulk.tensor with .multicast::cluster is sm_90+ per the PTX ISA; sm_90a is only advised for performance. The catalog row (sm_90+) is right.
    • What excludes an H100 is main.rs:155 (if major < 10) plus the "requires sm_100a" strings.
    • Checked here: --arch=sm_90a builds and ptxas accepts it. A 5090 builds native sm_120a, so the README's "sm_100a JIT" story (from docs(examples): correct stale tma_multicast consumer Blackwell claims #1172, on me too) is wrong.

    PR we could take:

  3. vyncint commented on Sep 5, 2026

    @vyncint
    ContributorAuthor

    Taking this. Two of your three items are unambiguous and I will ship them; the third has a shape question I would rather raise now than guess at.

    Shipping: the gate at src/main.rs:156 moves from major < 10 to major < 9, and the claim text follows it. There are 18 sm_100a occurrences across main.rs and the README, plus one cross-reference in tma_copy/README.md that calls this example "sm_100a only", and each needs reading rather than a blanket substitution -- some of them correctly describe the build target the example pins, which does not change, while others assert a hardware requirement that your ISA reading disproves. The Hopper row becomes "legal per ISA, hardware run pending" as you put it, and I will not write anything stronger, since I have no H100.

    The question -- the compile-only smoketest at --arch=sm_90a. tma_multicast is in none of the category arrays, so it is standard today: the smoketest builds it and runs it, and the example's own capability gate makes that a clean skip on anything below the floor. There is no existing hook for "also compile this one at a second architecture" -- SM100_COMPILE_EXAMPLES and BLACKWELL_COMPILE_EXAMPLES make an example compile-only, which here would trade away the runtime clean-skip coverage it has now.

    So the options are: add a new per-example "extra compile arch" mechanism to smoketest.sh, or leave the category alone and let the sm_90a build be something CI does not do. I did not want to invent a mechanism in smoketest.sh unasked, so unless you say otherwise the PR will carry the gate and the text with the smoketest arch left out and called out as deliberately deferred.

    Verification I can offer: an A10G is sm_86, so I cannot run this. I will reproduce your compile check -- --arch=sm_90a builds and ptxas accepts the result -- and report only that. The H100 run that actually closes this issue stays open.

  4. PlierShounen36 commented on Sep 7, 2026

    @PlierShounen36

    hey can I work on this

  5. added
    cuda-oxide
    on Oct 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

    cuda-oxidegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions