已合并
[fix]tiling_key_error #32353
cuiduo创建于 3月25日
[fix]tiling_key_error #32353
已合并
cuiduo创建于 3月25日
cuiduo
cuiduo成员
3月25日

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

【修改方案】

  1. 在codegen的tiling阶段,会调用get_axis_dtype来获取node的type,当axis为sympy.Expr类时会报错
File "/home/cuiduo/miniconda3/envs/py311/lib/python3.11/site-packages/torch_npu/_inductor/codegen/triton.py", line 790, in get_axis_dtype
dim = self.range_tree_nodes_removed[key]
torch ._ dynamo. exc. BackendCompilerFailed: backend='inductor' raised:
KeyError: x2 + 512*y1 + 2048*z0

因此需要增加校验,提取sympy.Expr中的Symbol以进行dtype的判断

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

自验完成

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 cuiduo 的贡献)
cuiduocuiduo成员
3月25日 创建了 pull request,commit 8539dffe
cuiduo
cuiduo成员
3月25日 评论:

compile

likedislike
cuiduocuiduo成员
3月25日 推送  1 个提交:bbb6d978-[fix]tiling_key_error
cuiduocuiduo成员
3月25日 update merge request[project id: 7404318, iid: 32353, commit_id: b9d28b07832ca8691c2caeccd98fac8f1ece1bc9] virtual merging success
ascend-robot
ascend-robot成员
3月25日 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
test zichun_ye, adrian07110 (2/2) zichun_ye, adrian07110 (2/1)
torch_npu/_inductor zichun_ye, adrian07110 (2/2) adrian07110, zichun_ye (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

cuiduo, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
3月25日 添加了label:ascend-cla/yes
AtlasAccountAtlasAccount成员
3月25日 添加了label:ci-pipeline-failed
ascend-robotascend-robot成员
3月25日 删除了label:ci-pipeline-failed
ascend-robotascend-robot成员
3月25日 添加了label:ci-pipeline-running
ascend-robotascend-robot成员
3月25日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
3月25日 添加了label:ci-pipeline-failed
ascend-robot
ascend-robot成员
3月25日 评论:
流水线 PR-pipeline_pytorch#12394 运行失败
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
Build_ARM_inductor 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 🛑 >>>
UT_DIST_X86_Part_02 🛑 >>>
UT_DIST_X86_Part_03 🛑 >>>
UT_DIST_X86_Part_04 🛑 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
cuiduo
cuiduo成员
3月25日 评论:

compile

likedislike
ascend-robotascend-robot成员
3月25日 删除了label:ci-pipeline-failed
此处折叠了8条事件消息 查看更多
ascend-robotascend-robot成员
3月26日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月26日 评论:
流水线 PR-pipeline_pytorch#12437 (重试第3次)已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
Build_ARM_inductor 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 🛑 >>>
UT_DIST_X86_Part_02 🛑 >>>
UT_DIST_X86_Part_03 🛑 >>>
UT_DIST_X86_Part_04 🛑 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
cuiduocuiduo成员
3月28日 修改了pull request 的描述
cuiduocuiduo成员
3月28日 修改了pull request 的描述
zichun_ye
zichun_ye成员
3月28日 评论:

/approve

likedislike
ascend-robotascend-robot成员
3月28日 添加了label:approved
ZhihaoLi
ZhihaoLi成员
3月30日 评论:

/approve

likedislike
ascend-robotascend-robot成员
3月30日 添加了label:lgtm
ascend-robot
ascend-robot成员
3月30日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zichun_ye, adrian07110.
Reviewers who wrote a comment of /lgtm are: zichun_ye, adrian07110.

likedislike
ascend-robotascend-robot成员
3月30日 合入了pull request