[language](fix) Allow non-power-of-two arange ranges - #1884
Open
Ritsuka314 wants to merge 1 commit into
Open
Conversation
Signed-off-by: Ritsuka314 <Ritsuka@huawei.com>
Contributor
|
✅ OpenCodeReview: Review skipped: no items were selected. |
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.
Rationale
AscendNPU-IR now supports non-power-of-two tensor shapes, but the Triton Ascend patch still rejects non-power-of-two
tl.arangeranges in SIMT mode before they reach lowering. The same patch already relaxes the generic Python block-shape and C++ tensor-size restrictions.Remove the remaining semantic guard so both SIMD and SIMT compilation can use the downstream non-power-of-two support.
This is the Triton-Ascend frontend companion to AscendNPU-IR !1357, which adds the corresponding downstream support and regression coverage.
Validation
git apply --check third_party/ascend/patch/triton-ascend-3.6.0.patchpre-commit run --from-ref github-upstream/main-dev --to-ref HEADNew contributor declaration