已合并
Skip scatter reduce fallback shim #39744
Skip scatter reduce fallback shim #39744
已合并
fgd_dragon创建于 7月1日
fgd_dragon成员
7月1日

【合入来源】

【修改方案】

image.png

  1. torchnpugen/gen_npu_c_shim.pyNPU_UNSUPPORTED_OPS 中新增 aten.scatter_reduce.two
  2. 生成 NPU AOTInductor C shim 时,从 inductor_fallback_ops 过滤该不支持算子,避免为 NPU 当前不支持的 aten.scatter_reduce.two 生成 fallback shim。
  3. 该修改仅影响 NPU AOTInductor C shim 生成侧的 unsupported op 过滤逻辑,不改变算子前端接口和运行时调用方式。

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

  1. 已确认 cherry-pick 后分支相对对应基线仅新增 1 个提交。
  2. 已确认 diff 仅修改 torchnpugen/gen_npu_c_shim.py,变更内容为新增 aten.scatter_reduce.two_outNPU_UNSUPPORTED_OPS
  3. 已确认本地分支与远端 origin 分支提交一致。

【CheckList】

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 fgd_dragon 的贡献)
Ffgd_dragon成员
7月1日 创建了 pull request,commit 67c568f0
Ffgd_dragon成员
7月1日 关联了issue:[Bug]: Skip unsupported scatter reduce out shim
ascend-robot
ascend-robot成员
7月1日 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
7月1日 添加了label:docs-ci-pipeline-running
Ffgd_dragon成员
7月1日 update merge request[project id: 7404318, iid: 39744, commit_id: f0a71fc9959ef2c1604f162faf45788ce6cd4f02] virtual merging success
Ffgd_dragon成员
7月1日 强制推送  6 个提交:67c568f0-5 commits from branch v2.9.0b94b4e06-Skip scatter reduce fallback shim
Ffgd_dragon成员
7月1日 update merge request[project id: 7404318, iid: 39744, commit_id: d1d537d938a46ca7c0145a78fa283ec2f395d3b3] virtual merging success
ascend-robotascend-robot成员
7月1日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
7月1日 评论:

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
repo-Ascend/pytorch 褚博宁, chengpeng25 (2/2) 褚博宁 (1/1)

💡 Tip:

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

CLA Signature Pass

wang-ziqi-code, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
Ffgd_dragon成员
7月1日 修改了pull request 的描述
Ffgd_dragon成员
7月1日 修改了pull request 的描述
ascend-robot
ascend-robot成员
7月1日 评论:

ascend docs pipeline is running...

likedislike
Ffgd_dragon成员
7月1日 修改了pull request 的描述
ascend-robot
ascend-robot成员
7月1日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
7月1日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
7月1日 添加了label:docs-ci-pipeline-success
fgd_dragon成员
7月1日 评论:

compile

likedislike
ascend-robotascend-robot成员
7月1日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
7月1日 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
7月1日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
7月1日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
7月1日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
7月1日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
7月1日 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
7月1日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
7月1日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
7月1日 评论:
流水线 PR-pipeline_pytorch#40390 [ commitID:b94b4e06 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
UT_ARM_A2_Select_Part_01 >>>
UT_ARM_A2_Select_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, huangjingwei, liangsongwei, yashi999, culechan, Dring, wuyouqi1, L1919_snow, qq_52711437, WhiteNight12, nomiz, xiu_21, ffmh, wanglijun55, hss-shuai, husichao, smallsilly, lanshaozuishuai, jimmyisme1, lzy0920232, alpha-junh, Sunshine_Youngster, wei_zhuoyi, zhangyihuiben, zyw-hw, zzzkeke, rmch, yangch0324, LucciC, AACAES, renyujin, wjlflyer, senzhen-town, pengjingyou, qsc97, limuan, yule100, xiaoqi-zhou, kuhn7, chenxingying, hanye02, zichun_ye, anyrenwei, kkjocker, wangzili121, Lu_G, yvjc, puddingfjz, HandsoemLemon, bigprestigee1, huawuyi, zhenyu10, dairenjie, du-jin-hang, zou-jieyu, adelaideliu, TrHan, wanlinan, Windwindzzz, pengqihw, kisnwang, yuheng_wang, honghao_wang, jizewei, zhangguoguang, sunyu-xuan, chenrayray, hbhu_bin, liujunzhu, c_34, LiNuoh, maoyuanpeng1, zzhongmin, zhaoyu65, bellatan, jiabaolin, zhuofanshen, wencaiwen, lu_zhuge, caoshuyang, molly12, lyx324521, LQ1206, gitcode-chenjiao, cai-weiwei1989, CHDong, ogqin, yuanlipingGit, xuqinglin1, lqz2, zouwei1, chaoluoa, paradox325, jackzhang1116, yaoyao, akh, yujiacheng, dengjie0116, Hubert11111, Shine_Ws, wslhj555, longqiand, OYtao666, JiaqingQiang, luyyyy, Kingbelial, zhanghaiyu0101, wenxp1018, yanliu-luoluo, ksun_sekiro, liyong328, wgzheng, tangky, vivi_is_coding, aoiaoisola, weixin_44494597, wangmengmengwang65667, hid57809721, qq_35468730, comeonup, C547032, gcw_m5OQChA4, yao_yao_ling_xian, cnnbwcy, szqfes_12, cora_19, cann_lilin, can, shawnylee233]评论有效
  • compile、compile_inductor、compile_torchair : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
chengpeng25成员
7月1日 评论:

/lgtm

likedislike
chuboning成员
7月1日 评论:

/approve

likedislike
ascend-robotascend-robot成员
7月1日 添加了label:approvedlgtm
ascend-robotascend-robot成员
7月1日 合入了pull request
ascend-robot
ascend-robot成员
7月1日 评论:
流水线 pytorch_gitcode_PR_multiVersion#11670 [ commitID:b94b4e06 ] 已完成
likedislike