已合并
refactor(distributed): Disable dispatch/combine large-kernel execution version #4262
luoxinhui创建于 6月24日
refactor(distributed): Disable dispatch/combine large-kernel execution version #4262
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 luoxinhui 的贡献)6月24日 添加了label:cann-cla/yes
CANN-robot
6月24日 评论:
6月24日 评论:
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-cann/pypto | ✅ codehjp423, 尹杰 (2/2) | ✅ codehjp423 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
luoxinhui666, thanks for your pull request. All authors of the commits have signed the CLA. 👍


6月24日 预合并成功(commit_id: 5c985c5e0f851ce96154e8bbd9d859216a51aedc)
此处折叠了43条消息 查看更多
6月25日 修改了pull request 的描述
6月25日 修改了pull request 的描述
6月25日 修改了pull request 的描述
6月25日 修改了pull request 的描述
6月25日 修改了pull request 的描述
描述
移除 MoE dispatch/combine 的 large-kernel 执行版本 C++ 实现,包括 10 个关联 op(MoeDispatch、MoeDistributedCombine、SendToRoutingExpert、SendToSharedExpert、CopyToLocalExpert、FFNSched、FFNBatching、FFNCombineInfo、FFNValidCnt、DispatchSetFlag)及其在框架各模块中的引用。
背景
MoE dispatch/combine 的 large-kernel 执行版本已不更新迭代,该功能后续由 small-kernel 版本替代。需清理所有相关 C++ 代码以减少维护成本,避免歧义。
涉及模块与操作
opcode.h):删除 10 个 opcode 枚举值及分类集合中的引用opcode.cpp):删除 10 个 opcode 的 RegisterInfooperation_impl.cpp):删除 10 个 case 分支distributed_common.h):删除MoeDispatchAttr和MoeCombineAttrdistributed_expand.h):删除所有 dispatch/combine 相关声明codegen_distributed.cpp):清空 codegen 逻辑codegen_op_npu.cpp/.h):删除 op 映射和方法声明tilefwk_op.h):删除 API 声明及MoeConfigstructISA.h):删除 op 字符串映射moe_dispatch.cpp、moe_distributed_combine.cpp、moe_dispatch.h、moe_combine.hdistributed_golden.py):删除 dispatch/combine 相关代码任务目标
备注
本次仅删除 C++ 实现层,当前pypto dispatch&&combine 的详细设计见:python/tests/st/operator/distributed/test_moe_distributed_dispatch_combine.py