Repository navigation
[Incubated] Preserve scalar splat masks used by atomic RMW - #88
Open
Kaiwen1024 wants to merge 1 commit into
Open
Kaiwen1024 wants to merge 1 commit into
Kaiwen1024 wants to merge 1 commit into
Conversation
Author
|
Hi @zhzhcookie, gentle ping to review this scalar-splat mask preservation fix for tt.atomic_rmw (Refs flagos-ai/FlagTree#1383) when convenient. Thanks! |
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.
A scalar predicate splatted into a tensor mask was recognized as a memory mask for loads and stores, but not for
tt.atomic_rmw. If the splat was shared by an indirect load and an atomic,MaskState::parseSplatconsequently retained the full tensor extent and dropped the predicate for both accesses. For the one-element-block reproducer in flagos-ai/FlagTree#1383, two valid elements produced eight increments.Recognize the atomic's mask operand in the existing memory-mask classification. The resulting subview and input slice have a predicate-dependent extent, including extent zero. Add FileCheck regressions for a load/atomic shared mask and an atomic-only vector mask.
Validation:
triton-to-linalg-incubatedpass and FileCheck pass for both regression modules; the same checks fail with the original library.Hardware validation incrementally rebuilt this translation unit and relinked a private libtriton against an existing FlagTree Ascend build. The baseline translation unit is identical to current flir main; the shared installation was untouched.