Repository navigation
Triton v3.6 ascend strip ttir to linalg - #157
Draft
zhongsanming wants to merge 7 commits into
Draft
zhongsanming wants to merge 7 commits into
zhongsanming wants to merge 7 commits into
Conversation
Build the FLIR incubated TTIR->Linalg target before the Ascend libraries, link it from TritonAscend/DiscreteMaskAccessConversion, and remove the local third_party/ascend TritonToLinalg copy. Register the core TTIR passes needed by the pass tests in the self-contained triton-opt.
Use --triton-to-linalg-incubated and the TritonToLinalgIncubated IR dump label, and refresh checks for the current MLIR printer (to_tensor result type elision, explicit matmul indexing_maps).
Remove the duplicate Ascend TritonMemoryAccess implementation and point all Ascend consumers at incubated/TritonMemoryAccess from FLIR.
Remove the duplicated layout-memory/coalescing implementation and GraphOptimization metadata from Ascend, and link the FLIR incubated TritonToGraph target from TritonToGraph and TritonToLinalgIncubated.
Drop the duplicate ControlFlowRewrite attribute definitions and include the FLIR incubated shared header.
Remove the duplicated Ascend Utils implementation and include/link the FLIR incubated Utils target from the Ascend passes.
Drop the local symlink committed with the FLIR wiring and ignore the AscendNPU-IR checkout path so it cannot be re-added.
zhongsanming
marked this pull request as ready for review
November 20, 2026 01:13
zhongsanming
marked this pull request as draft
November 20, 2026 03:58
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.
删除 third_party/ascend 中本地的 TritonToLinalg 实现及共享依赖副本,改为消费 FLIR 的 incubated target。同步更新 Ascend 的 CMake、pybind 和 triton-opt 接入,并把 TTIR→Linalg 测试切换到 triton-to-linalg-incubated。Ascend 全量构建通过;Linalg lit 测试 49/49,Ascend 全量 lit 220/223(3 个原有且无关的失败)。
配套 PR: kateyijian/flir#28