Merged
refactor(pypto_pro): remove sync_all soft mode #6617
xuxinlei321Add on Sep 22
refactor(pypto_pro): remove sync_all soft mode #6617
Merged
xuxinlei321Add on Sep 22
xuxinlei321
Sep 22

PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。

下面是一个典型的PR描述信息:

The origin issue template brings too many noise, it's not suitable for git message. eg: comments
are not removed, labels are redundant as the PR tile already contains the tag.

The guide gives a clear suggestion on how to write the PR body.

Related Issue: #1234,#5678

更多描述信息见:Commit Message 规范

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for xuxinlei321's contribution.)
xuxinlei321xuxinlei321
Sep 22 Created pull request, commit e0080004
atomgit-bot
atomgit-bot
Sep 22 Comments:

变更摘要

本 PR 移除了 system.sync_all 的软模式(soft mode)同步能力,使其仅保留基于 FFTS 硬件信号的硬模式。核心改动包括删除 SyncAllMode 枚举及其在 C++ IR 属性类型、Python 绑定与模块导出中的定义,将 system.sync_all 注册简化为无参数、仅保留 core_type 属性,并同步简化后端 CCE 代码生成与 Python 前端接口及解析逻辑;此外还顺带为 _api.py 中大量 API 声明补充了仅位置参数(/)标记。

主要改动

  • 删除 SyncAllMode 枚举: 从 framework/include/ir/op_attr_types.h、python/src/bindings/ir/ir.cpp、python/pypto/ir.py 与 python/pypto_pro/language/__init__.py 中移除 SyncAllMode(HARD/SOFT)的声明、绑定与导出。
  • 简化 system.sync_all 算子定义: 在 framework/src/interface/ir/op/sync_ops/sync.cpp 中删除 DeduceSyncAllType 及其软模式校验逻辑,算子改为 no_argument()、仅保留 core_type 属性,类型推导改用 DeduceUnknownType,描述更新为“Global core synchronization”。
  • 简化后端 CCE 代码生成: framework/src/interface/pypto_pro/backend/backend_cce_ops.cpp 中移除按 mode 分派及软模式工作区(gm/ub/l1/used_cores)处理,统一生成 SYNCALL<SyncCoreType>()。
  • 调整 Python 前端接口与解析: python/pypto_pro/ir/op/system_ops.py 中 sync_all 移除 workspaces 与 mode 参数,仅保留 core_type;解析器 _parse_system_sync_all 在存在位置参数时抛出 InvalidArgument。
  • 为 _api.py 增加仅位置参数标记: python/pypto_pro/language/_api.py 中为 load、store、move、matmul、pto_assert、range 等大量 API 声明补充 /,并调整 matmul 的 bias_tile 为 Optional[Tile] 位置参数。

(测试文件 python/tests/... 同步更新:移除软模式相关用例,sync_all 调用改为仅传 core_type,并新增拒绝 mode/位置参数的负向断言;python/tests/st/pypto_pro/frontend/element_wise/test_quant_cast_scatter.py 被删除。)

likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 22 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 22 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

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

Module Approval Details

module lgtm status approve status
9.2.0 ✅ gcw_kUomxQ2l, gaoxiang618 (2/2) ✅ gcw_kUomxQ2l (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Set xinweiliu,lyz0328,cam_bxh,dai-zhentao,TianXL,lululu40888,shi-dingkun,gguuaanngg,codehjp423,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,gcw_kUomxQ2l,Andy-lb,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Sep 22 Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
xuxinlei321
xuxinlei321
Sep 22 Comments:

compile

likedislike
xuxinlei321xuxinlei321
Sep 22 Pre merge succeeded (commit_id: dc7644590c43937c8c6dc3a5fb3b6fbdb4a54687)
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-running
xuxinlei321xuxinlei321
Sep 22 Associated issue: [Documentation|文档反馈]:API文档内容整改
CANN-robotCANN-robotCollaborators
Sep 22 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-failed
xuxinlei321
xuxinlei321
Sep 22 Comments:

compile

likedislike
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Removed label: ci-pipeline-failed
7 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Sep 22 Removed label: ci-pipeline-passed
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Added label: cann-cla/yes
xuxinlei321
xuxinlei321
Sep 22 Comments:

compile

likedislike
xuxinlei321xuxinlei321
Sep 22 Pre merge succeeded (commit_id: 5f34e537e32d48e8b41578d286f0c32bc888244b)
CANN-robot
CANN-robotCollaborators
Sep 22 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-running
6 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Sep 22 Added label: ci-pipeline-passed
liulun0308
liulun0308Collaborators
Sep 23 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: approved
gaoxiang618
gaoxiang618Collaborators
Sep 23 Comments:

/approve
/lgtm

likedislike
CANN-robot
CANN-robotCollaborators
Sep 23 Comments:

The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: gaoxiang618

likedislike
CANN-robotCANN-robotCollaborators
Sep 23 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 23 Merged pull request