Repository navigation
feat(intrinsics): add Blackwell data-path and execution-control intrinsics - #721
Merged
nihalpasham merged 4 commits intoAug 10, 2026
Conversation
…nsics Signed-off-by: Zihua Wu <[email protected]>
10 tasks done
setmaxnreg.{inc,dec}.sync.aligned.u32 reconfigures the register file for
the whole warpgroup, so every warp must execute it together; the exported
declaration now carries the convergent attribute like the other warp- and
warpgroup-collective nvvm intrinsics. The counted CTA barrier family
(llvm.nvvm.barrier.cta.{sync,arrive}[.aligned].count) is already covered
by the existing llvm.nvvm.barrier prefix; a test now checks that coverage
against the exact names the generated lowerings produce.
Signed-off-by: nihalpasham <[email protected]>
counted_barrier (standard category) proves the counted numbered-barrier intrinsics with data, not just completion: warps 0 and 1 hand values across barrier.sync 1, 64 and across a split barrier.arrive/barrier.sync pair on barrier 2, while warps 2 and 3 never participate; the host verifies the produced values and the untouched bystander slots. mma_mxf8f6f4 runs the block-scaled Blackwell register MMA (mma.sync.aligned.m16n8k32.row.col.kind::mxf8f6f4.block_scale .f32.e4m3.e4m3.f32.ue8m0) on one warp and compares the full 16x8 D matrix bitwise against a CPU reference, with fragments packed on the host per the PTX ISA m16n8k32 8-bit layout. kind::mxf8f6f4 exists only on sm_120/sm_121, so the new blackwell-mma smoketest category always compiles with --arch=sm_120a (the generated target gating rejects every other architecture at compile time); on an sm_120/121 host the example must execute and verify, elsewhere it checks that the generated PTX contains the instruction and exits 0, mirroring the wgmma category. check-example-smoketest-contract.sh learns the new category array so its members are not mistaken for standard examples. Signed-off-by: nihalpasham <[email protected]>
Collaborator
|
Gist:
I pushed two commits:
Verified here on RTX 5090s (sm_120a, the prime target of the new MMA family), CUDA 13.3:
Before merge: This need to rebase (about 30 commits behind; main never regenerated the factory outputs, so one Related to #660, #604, #774; closes none of them. Follow-ups we'll file separately: a |
nihalpasham
approved these changes
Aug 10, 2026
This was referenced Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extend the reviewed intrinsic catalog and lowering pipeline with 65 ABI-stable entries covering Blackwell mixed-format register MMA, counted CTA barriers, TMA descriptor and prefetch control, programmatic dependent launch, and warpgroup register-allocation control.
Changes
mma.m16n8k32.mxf8f6f4.f32register-MMA variants for the supported SM120/SM121 targets.syncandarrivevariants, including aligned forms.launch_dependentsandwaitoperations.setmaxnregincrement and decrement operations.ldmatrixvariants and their target gating.ptxasnames throughPATHduring PTX-assembly validation.Target policy
Generated artifacts
This change adds 65 new probe files, corresponding to the 65 new ABI entries.
The remaining modified probe files are deterministic regeneration caused by portable evidence metadata and tool-name normalization; they do not represent additional public intrinsic entries.
Testing
cargo fmt --all --checkcargo clippy -p cuda-intrinsics-gen --all-targets -- -D warningscargo test -p cuda-intrinsics-gen— 289 passedcargo run -p cuda-intrinsics-gen -- checkcargo run -p cuda-intrinsics-gen -- check-abi-history --base-ref upstream/maincargo check -p cuda-intrinsics -p dialect-nvvm -p mir-lowerChecklist
git commit -s)