已合并
feat: support (built-in)indirect_load for unstructure load #682
candyhong创建于 2025年11月4日
feat: support (built-in)indirect_load for unstructure load #682
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 candyhong 的贡献)ascend-robot
2025年11月4日 评论:
2025年11月4日 评论:
ascend-robot
2025年11月4日 评论:
2025年11月4日 评论:
以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入
| Module List | Reviewers | Committers |
|---|---|---|
| repo-Ascend/triton-ascend | chnjz233, wangtao489, zhang-chunli01, leopold0801, kpxing | wcleungaj, liuzhuheng, zhang-chunli01, ccdedreams, cxtjjcz |


2025年11月4日 添加了label:ascend-cla/yes
此处折叠了51条消息 查看更多
2025年11月7日 添加了label:approved
2025年11月7日 添加了label:lgtm
ascend-robot
2025年11月7日 评论:
2025年11月7日 评论:
Review Guide
This Pull-Request Passes Review.
Committers who writed a comment of /approve are: zhang-chunli01.
Reviewers who writed a comment of /lgtm are: zhuxuejie, zhang-chunli01.


2025年11月7日 合入了pull request
Issue
无
背景
为优化间接访存场景的兜底实现,适配 A5 环境需求,需新增专门的间接访存接口,并通过开关控制不同场景下的实现路径:A5 使能时使用高效接口,未使能时保持原有逻辑。
描述
compile-on-a5使能开关TT_Indirect_Load接口当
compile-on-a5=True时,使用func:FuncOp(IndirectLoad)。当
compile-on-a5=False时,保留原有兜底方案(For 循环嵌套与extract_slice等操作)。测试
测试脚本:pytest -sv ascend/examples/pytest_ut/test_ldst.py::test_ldst_indirect_05
compile-on-a5=True时,Adapter IR 中出现call @triton_indirect_load调用,直接下发接口完成间接访存compile-on-a5=False时,AdapterIR 仍然使用原有的间接访存实现,通过 scf.for 循环嵌套和 tensor.extract 完成数据提取。