Repository navigation
feat: add movmatrix in-register matrix transpose - #310
Merged
Merged
Conversation
honeyspoon
force-pushed
the
add-movmatrix-v2
branch
from
June 29, 2026 18:23
2cbb0a4 to
6f7f562
Compare
49 tasks done
honeyspoon
force-pushed
the
add-movmatrix-v2
branch
4 times, most recently
from
June 30, 2026 04:14
9d9a2e7 to
0ea1f8d
Compare
nihalpasham
force-pushed
the
add-movmatrix-v2
branch
from
July 1, 2026 08:56
0ea1f8d to
428c40a
Compare
nihalpasham
force-pushed
the
add-movmatrix-v2
branch
from
July 1, 2026 10:15
428c40a to
d503598
Compare
Collaborator
|
Thanks for the PR. LGTM. I kept the hardware floor at Reviewer note: This work partially addresses #274, which remains open. |
meefs
pushed a commit
to meefs/cuda-oxide
that referenced
this pull request
Sep 30, 2026
…er's tokens (NVIDIA#310) The token copy-back added for set_token carried any same-identity binding's token across inlining and block boundaries, including the completion token a load installs on its own view inside the inlined Partition::load. For an immutable Partition that update used to stay in the callee frame; carrying it out made every read-only partition's second load depend on its first, serializing loads that need no ordering among themselves. grout's fused norm+RoPE prefill kernel went from 20 to 27 us per call (+4.4% on short prefill) with identical Tile IR text apart from the load token operands; its SASS grew from 5408 to 5520 instructions. Only explicit set_token / set_tensor_token installs now cross a boundary for immutable bindings (the compiler already records them in explicit_token_updates). Mutable bindings keep the full metadata copy. With the fix both kernels compile to Tile IR identical to fce7e4c and to the same SASS (5408 / 4312 instructions, 181 / 189 registers). Signed-off-by: Melih Elibol <[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.
Summary
Add
movmatrix.sync.aligned.m8n8.trans.b16across all four compilerlayers (cuda-device, dialect-nvvm, mir-importer, mir-lower).
The instruction transposes an 8x8 matrix of b16 elements distributed
across a warp's registers without a shared-memory round-trip. Each
thread provides one u32 (2 packed b16 elements); the hardware
collectively transposes the tile and returns the result to each lane.
This is useful for switching fragment layouts between chained MMA
operations (e.g., row-major to column-major) without going through
shared memory.
Requires sm_90+ (Hopper).
Ref #274 (Phase 2: Matrix operations)
Test plan
cargo clippy -- -D warningsclean across all 4 cratescargo fmt --checkclean