Merged
[feat] CCU api for resource management #3367
p_chAdd on Jul 3
[feat] CCU api for resource management #3367
Merged
Merged fromp_ch/hcomm_ccu_res_apifeat/ccuintocann/hcommmaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for p_ch's contribution.)Jul 3 Added label: cann-cla/yes
CANN-robot
Jul 3 Comments:
Jul 3 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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| docs | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| include | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| src/base_comm | ✅ Innoecho, 颜业峰, laodazhao1 (3/2) | ✅ Innoecho, 颜业峰 (2/1) |
| src/coll_communicator_mgr | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| src/legacy/ascend910/framework | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| src/legacy/ascend950/service/collective/alg | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| src/legacy/ascend950/unified_platform | ✅ Innoecho, 颜业峰, laodazhao1 (3/2) | ✅ Innoecho, 颜业峰 (2/1) |
| test | ✅ 颜业峰, Innoecho, laodazhao1 (3/2) | ✅ Innoecho, 颜业峰 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
p_ch, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Jul 3 Added label: stat/needs-squash
1200 messages are collapsed here。 See more
laodazhao1
Aug 1 Comments:
Aug 1 Comments:
/lgtm


Innoecho
Aug 1 Comments:
Aug 1 Comments:
/approve


philo
Aug 1 Comments:
Aug 1 Comments:
/approve


Aug 1 Added label: lgtmapproved
Aug 1 Merged pull request
描述
本 PR 在已合入的 #3538 新增的 CCU 资源管理接口声明及阶段性桩实现基础上,将资源描述符、CCU 实例创建与资源查询相关的 C 接口落地为功能实现,并补齐「资源描述符 -> CCU 实例 -> 绑定通信域」的资源规划链路,使上层能够在创建 CCU 实例前按 ioDie 查询 Kernel 资源诉求、配置资源数量并申请实例。本批新增能力当前仅支持 Ascend 950PR/950DT。
主要改动:
HcommCcuInsResDescCreate、HcommCcuInsResDescDestroy、HcommCcuInsResDescSetNum、HcommCcuInsResDescQueryNum、HcommCcuInsResDescQueryDieId。HcommCcuInsCreate、HcommCcuInsCreateDefault、HcommCcuInsDestroy。HcommCcuInsQueryResDesc、HcommCcuQueryRemainResDesc。HcommCcuKernelQueryResReq。HcclCommAssignCcuIns。HcclCommQueryCcuIns。MyRank的 CCU 初始化与清理流程。CcuResDesc、CcuResDescMgr和ccu_res_type_converter.h。CcuInstance、CcuInstanceMgr、CcuResPack、CcuKernel和CcuKernelMgr。CcuGet{LoopEngine,Ms,Cke,Xn,Gsa,Instruction,Mission}Num、CcuAllocResHandleByResDescs。ccu_component、ccu_res_allocator和ccu_res_batch_allocator。变更类型
请选择本次引入的变更类型:
关联的PR
测试
本 PR 补充或调整了以下 UT 代码:
ut_HcommCcuKernelQueryResReq_test.cc(623 行)ut_HcommCcuResDescApi_test.cc(327 行)ut_coll_comm_ccu_c_adpt.cc(257 行,覆盖HcclCommAssignCcuIns)ut_ccu_res_batch_allocator.cc(新增 233 行)和 legacy 框架ut_ccu_res_batch_allocator.cpp(新增 213 行)ut_HcommCcuControlApi_test.cc、ut_my_rank.cc、ccu_dev_mgr_mock.cc、llt_next_orion_ccu_stub.ccut_hcomm_ccu_res_stub_api_test.cc文档更新
ccu_resource_mgmt/README.md、index.md、HcommCcuKernelQueryResReq.mdHcclCommAssignCcuIns.mdcomm_opdev/README.md、_dump_node_ctrl.md和comms_domain_resource_mgmt/README.md的目录索引ccu_kernel_launch_execution/README.md中 CCU 实例的获取与绑定流程合入检查