Pull Request has been successfully merged by CANN-robot.
(Thank you for xuxinlei321's contribution.)变更摘要
本 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 被删除。)


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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/approve
/lgtm


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


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