Repository navigation
Description
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_multicastPTX 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 forcp_async_bulk_tensor_2d_g2s_multicastis 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 themajor < 10gate 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
docs(examples): word tma_multicast support notes as user documentation
docs(examples): correct stale tma_multicast consumer Blackwell claims (…
nihalpasham commentedon Aug 28, 2026
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.
nihalpasham commentedon Sep 3, 2026
Gist: for the Hopper half, the ISA allows it; the example forbids it.
cp.async.bulk.tensorwith.multicast::clusteris sm_90+ per the PTX ISA;sm_90ais only advised for performance. The catalog row (sm_90+) is right.main.rs:155(if major < 10) plus the "requires sm_100a" strings.--arch=sm_90abuilds 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:
major < 9, fix the strings and README (Hopper row: "legal per ISA, hardware run pending"),--arch=sm_90ato the compile-only smoketest.vyncint commentedon Sep 5, 2026
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:156moves frommajor < 10tomajor < 9, and the claim text follows it. There are 18sm_100aoccurrences acrossmain.rsand the README, plus one cross-reference intma_copy/README.mdthat 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_multicastis in none of the category arrays, so it isstandardtoday: 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_EXAMPLESandBLACKWELL_COMPILE_EXAMPLESmake 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 insmoketest.shunasked, 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_90abuilds andptxasaccepts the result -- and report only that. The H100 run that actually closes this issue stays open.tma_multicast: describe the real target model, drop sm_100a claims
docs(tma_multicast): gate on the ISA floor, not on this build target (#…
PlierShounen36 commentedon Sep 7, 2026
hey can I work on this