Repository navigation
test(codegen): validate spill-free two-slot WGMMA counted pipeline - #933
Merged
nihalpasham merged 1 commit intoAug 17, 2026
Merged
Conversation
Signed-off-by: Raul Estrada <[email protected]>
Collaborator
|
Gist: the feasibility probe #932 asked for: two BF16 WGMMA accumulator slots (64 tied f32 values), four descriptor recurrences, and a trip counter, all live inside one counted inline-PTX loop, checked against ptxas. What I verified:
Closes #932 on merge. The lowering itself is #934, reviewed over in #935. |
nihalpasham
approved these changes
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.
Fixes #932
Summary
Add a backend feasibility probe for composing the existing register-resident counted WGMMA loop with a two-slot partial-wait pipeline.
The test keeps 64 tied
f32accumulator values live across a counted PTX loop while also carrying:Each loop iteration issues two statically assigned accumulator slots, commits both groups independently, and uses
wait_group<1>before reusing the slots. A finalwait_group<0>drains the remaining asynchronous work.Why
CUDA Oxide already tests the two required properties independently:
wgmma_counted_loop_ptx.rsvalidates a counted K-loop with one 32-value register-resident accumulator;wgmma_pipeline_carrier_ptx.rsvalidates two 32-value accumulator slots with partial waits.The remaining backend risk is their composition.
This test isolates that question before introducing a combined MIR recognizer or NVVM carrier operation.
Validation
Tested with CUDA 13.3
ptxastargetingsm_90a.The combined probe therefore retains the same reported register count as the existing two-slot straight-line pipeline while adding the counted loop and descriptor recurrences.
The new test also checks that the generated PTX contains:
wgmma.mma_asyncinstructions;wgmma.commit_groupinstructions;wgmma.wait_group 1instructions;wgmma.wait_group 0;.local,ld.local, orst.local.Scope
This PR only adds the backend feasibility test.
It does not change:
A follow-up change can use this result to implement the actual pipelined counted K-loop lowering.