Repository navigation
test(codegen): validate spill-free 32-value WGMMA carrier - #679
Merged
Merged
Conversation
uurl
force-pushed
the
feat/605-wgmma-value-carrier
branch
from
August 6, 2026 11:20
c8141f0 to
75d83e7
Compare
Signed-off-by: Raul Estrada <[email protected]>
uurl
force-pushed
the
feat/605-wgmma-value-carrier
branch
from
August 6, 2026 11:20
75d83e7 to
8343c23
Compare
Collaborator
|
Step 1 of the #605 plan lands what it promised:
Merging. |
nihalpasham
approved these changes
Aug 7, 2026
nihalpasham
added a commit
to uurl/cuda-rust
that referenced
this pull request
Aug 8, 2026
… ptxas The carrier probe from NVIDIA#679 only ever assembled a single wgmma.mma_async under one fence/commit/wait. The value-form lowering template chains multiple MMAs inside the same asm region, so the feasibility claim needs a chained probe too. Parametrize the carrier harness on mma_count (kernel builder, template, constraints, and assertions) and add a second test that builds the mma_count = 2 shape: two chained wgmma.mma_async instructions under one fence/commit/wait, one descriptor pair per MMA. ptxas must assemble the sm_90a PTX with zero spill bytes while keeping all 32 accumulators live.
nihalpasham
added a commit
that referenced
this pull request
Aug 8, 2026
* feat(wgmma): add 32-value SSA accumulator carrier Signed-off-by: Raul Estrada <[email protected]> * test(codegen): probe a chained two-MMA value-form WGMMA group through ptxas The carrier probe from #679 only ever assembled a single wgmma.mma_async under one fence/commit/wait. The value-form lowering template chains multiple MMAs inside the same asm region, so the feasibility claim needs a chained probe too. Parametrize the carrier harness on mma_count (kernel builder, template, constraints, and assertions) and add a second test that builds the mma_count = 2 shape: two chained wgmma.mma_async instructions under one fence/commit/wait, one descriptor pair per MMA. ptxas must assemble the sm_90a PTX with zero spill bytes while keeping all 32 accumulators live. --------- Signed-off-by: Raul Estrada <[email protected]> Co-authored-by: nihalpasham <[email protected]>
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.
This PR is the first of six planned PRs that incrementally implement #605.
Summary
Add feasibility coverage for carrying the 32 per-thread f32 accumulator
values of BF16 m64n64k16 WGMMA through one convergent inline-PTX region.
The tests verify that:
nvvm.inline_ptxaccepts 32 tied f32 inputs and 32 f32 results;32
extractvalueoperations;wgmma.mma_async.sync.aligned.m64n64k16.f32.bf16.bf16sequence compiles for
sm_90a;wait_group 0;ptxas -vreports zero stack frame, zero spill stores, and zero spillloads.
Observed locally:
Motivation
This isolates the primary backend feasibility question for #605 before
introducing a production value-form WGMMA operation or changing the
existing pointer-based deferred fallback.
Scope
This PR adds tests only. It does not: