[FPSAN] Optimize shared MMA operand loads#10527
Merged
Merged
Conversation
This was referenced Jun 7, 2026
This was referenced Jun 10, 2026
pawelszczerbuk
approved these changes
Jun 11, 2026
3e07ffe to
ceff22c
Compare
jeffniu-openai
added a commit
that referenced
this pull request
Jun 11, 2026
Context: #10473 landed after #10572 removed the old sliced-layout helpers, so the restacked #10527 called getSingleDimSliceEncoding and expandAllSlicedDims and failed during compilation on every CI GPU job. Implementation: derive the K-axis range type with getSlicedTensorType and expand it with reshapeAndBroadcast, matching the replacement API introduced by #10572 while preserving the direct result layout. Validation: - ninja -C build/cmake.macosx-11.0-arm64-cpython-3.12 triton-opt -j8 - lit -v test/TritonGPU/nvidia-fpsan.mlir test/TritonGPU/fpsan.mlir
2f74a21 to
ebb2c60
Compare
jeffniu-openai
added a commit
that referenced
this pull request
Jun 12, 2026
PR description written by Codex Optimize i8 decomposition by reordering the dots and eagerly combining into the accumulator-on-the-fly to minimize register pressure, and include a basic subtiling heuristic determined experimentally ## Stack Merge bottom-up: - [x] #10472 - [x] #10473 - [x] #10527 - [x] #10532 - [ ] #10533 (this PR) - [ ] #10542 - [ ] #10548 - [ ] #10561 - [ ] #10559
jeffniu-openai
added a commit
that referenced
this pull request
Jun 12, 2026
PR description written by Codex Fix FPSAN TMEM emulation for initialized scratch synchronization, predicated stores, reduction loads, and scale-copy reinterpret views. ## Stack Merge bottom-up: - [x] #10472 - [x] #10473 - [x] #10527 - [x] #10532 - [x] #10533 - [ ] #10542 (this PR) - [ ] #10548 - [ ] #10561 - [ ] #10559
jeffniu-openai
added a commit
that referenced
this pull request
Jun 12, 2026
PR description written by Codex Remove redundant payload sign clears before masked multiplies so NVPTX cannot fold them to `abs.f32`, which quiets signaling NaNs. Add a reduced one-warp regression that fails bitwise on PR #10542’s base and passes with the fix. ## Stack Merge bottom-up: - [x] #10472 - [x] #10473 - [x] #10527 - [x] #10532 - [x] #10533 - [x] #10542 - [ ] #10548 (this PR) - [ ] #10561 - [ ] #10559
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.
PR description written by Codex
Load shared MMA operands directly into their result layouts and reuse existing scale shadows, avoiding redundant layout conversions and scale snapshots, and also load accumulator directly into its MMA layout.
Stack
Merge bottom-up: