Skip to content

Triton v3.6 ascend strip ttir to linalg - #157

Draft
zhongsanming wants to merge 7 commits into
KernelLLM:triton_v3.6_ascendfrom
zhongsanming:triton_v3.6_ascend-strip_ttir_to_linalg
Draft

zhongsanming wants to merge 7 commits into
KernelLLM:triton_v3.6_ascendfrom
zhongsanming:triton_v3.6_ascend-strip_ttir_to_linalg

Conversation

@zhongsanming

@zhongsanming zhongsanming commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

删除 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

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
zhongsanming marked this pull request as ready for review November 20, 2026 01:13
@zhongsanming
zhongsanming marked this pull request as draft November 20, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant