已合并
UBC_CTP->UB_CTP #176
chen_xu0513创建于 25 天前
UBC_CTP->UB_CTP #176
已合并
chen_xu0513创建于 25 天前
chen_xu0513成员
25 天前

当前PR是否有AI参与:

[x] 否

[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :

PR功能描述 / 为什么需要这个合入**:

该PR关联的issue

(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #

希望检视人员了解:

改动类型 / Change Type

测试信息 / Testing

检查清单 / Checklist

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chen_xu0513 的贡献)
Cchen_xu0513成员
25 天前 创建了 pull request,commit c7ccc697
atomgit-bot
atomgit-bot
25 天前 评论:

变更摘要

本 PR 的核心改动是将通信协议 COMM_PROTOCOL_UBC_CTP 更名为 COMM_PROTOCOL_UB_CTP(华为统一总线 UB_CTP),并在协议枚举中保留 COMM_PROTOCOL_UBC_CTP 作为向后兼容的旧名别名,同时新增 COMM_PROTOCOL_UB_RTP(值 9)及其兼容别名 COMM_PROTOCOL_UBG。改动覆盖协议枚举定义、Hcomm/SIMT Hcomm 模板默认参数、HcommImpl 的 URMA 特化类(AIV/SIMT 平台)、MaskToCommProtocol 默认映射、示例代码与单测,属于全量协议名替换与兼容性保留,不改变既有协议行为。

主要改动

  • 协议枚举重命名与扩展(include/aicore/hcomm/hcomm_common.h):将枚举值 4 由 COMM_PROTOCOL_UBC_CTP 更名为 COMM_PROTOCOL_UB_CTP,并新增 COMM_PROTOCOL_UBC_CTP = COMM_PROTOCOL_UB_CTP 兼容旧名别名;另新增枚举值 9 COMM_PROTOCOL_UB_RTP 及其别名 COMM_PROTOCOL_UBG。
  • 模板默认参数与实现特化同步更新:include/aicore/hcomm/hcomm.h 与 include/aicore/hcomm/hcomm_simt.h 中 Hcomm 类模板及推导指引的默认 commProtocol 由 COMM_PROTOCOL_UBC_CTP 改为 COMM_PROTOCOL_UB_CTP;hcomm_aiv_urma_def.h、hcomm_simt_urma_def.h 中的特化类 HcommImpl<COMM_PROTOCOL_UBC_CTP> 改为 HcommImpl<COMM_PROTOCOL_UB_CTP>,hcomm_aiv_urma.h、hcomm_simt_urma.h 中的全部成员函数定义、hcomm_impl.h 中的 static_assert 及 hcomm_simt_base.h 注释随之一并替换。
  • AIN 默认协议映射更新(src/aicore/ain/impl/ain_impl_def.h):MaskToCommProtocol 在 AIN_MASK_DEFAULT 分支的返回值由 COMM_PROTOCOL_UBC_CTP 改为 COMM_PROTOCOL_UB_CTP。
  • 示例代码协议常量替换:examples/ain/basic_ring/basic_ring.asc、examples/hcomm_batch_write/hcomm_batch_write.asc 与 hcomm_batch_write_kernel.cpp、examples/hcomm_write_read_nbi/hcomm_rw_def.h、examples/simt_urma/main.cpp、examples/simt_urma_perftest/main.cpp 中的协议常量(如 desc.protocol、desc.channelProtocol、HOST_COMM_PROTOCOL、kTargetCommProtocol、AscendC::Hcomm<...> 模板实参)及错误日志文案均由 UBC_CTP 替换为 UB_CTP。
  • 单元测试同步更新(tests/ut/aicore/hcomm/test_hcomm_urma_950.cpp):全部测试用例中的 AscendC::Hcomm<AscendC::COMM_PROTOCOL_UBC_CTP> 实例化替换为 AscendC::Hcomm<AscendC::COMM_PROTOCOL_UB_CTP>,覆盖读写、批量提交/排空、锁操作等 URMA 相关用例。
likedislike
不准确?
atomgit-bot
atomgit-bot
25 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
25 天前 添加了label:cann-cla/yes
chen_xu0513成员
25 天前 评论:

compile

likedislike
Cchen_xu0513成员
25 天前 预合并成功(commit_id: 3700e81fa51802e7761a8ba3e3f434f28742d7d6)
CANN-robot
CANN-robot成员
25 天前 评论:

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
examples ✅ 闫庆尚, YeZZzzz1 (2/2) ✅ 闫庆尚 (1/1)
include ✅ 李东锋, YeZZzzz1 (2/2) ✅ 李东锋 (1/1)
repo-cann/asc-comm ✅ 闫庆尚, 李东锋, YeZZzzz1 (3/2) ✅ 闫庆尚, 李东锋 (2/1)
src ✅ 闫庆尚, YeZZzzz1 (2/2) ✅ 闫庆尚 (1/1)
tests ✅ 闫庆尚, YeZZzzz1 (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

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

likedislike
CANN-robot
CANN-robot成员
25 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
25 天前 添加了label:ci-pipeline-running
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
25 天前 添加了label:cann-cla/yes
chen_xu0513成员
25 天前 评论:

compile

likedislike
Cchen_xu0513成员
25 天前 预合并成功(commit_id: 705bacef18d9249b310c1955a244dd15622f776d)
CANN-robot
CANN-robot成员
25 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
25 天前 删除了label:ci-pipeline-failed
此处折叠了7条事件消息 查看更多
CANN-robotCANN-robot成员
25 天前 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
25 天前 评论:

Notification

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

likedislike
CANN-robotCANN-robot成员
25 天前 添加了label:cann-cla/yes
yanqingshang成员25 天前进行代码检视1
examples/ain/basic_ring/README_en.md
已过期
@@ -12,7 +12,7 @@ The Host side allocates memory, initializes the HCCL communicator, creates the H
1212| --- | --- |
1313| Product | `Ascend 950PR / Ascend 950DT` |
1414| NPU architecture | `dav-3510` |
15-| Communication protocol | `COMM_PROTOCOL_UBC_CTP` |
yanqingshang25 天前评论:

改名字的原因?

likedislike
Yyanqingshang成员
25 天前 解决了最后一个问题
chen_xu0513成员
24 天前 评论:

compile

likedislike
Cchen_xu0513成员
24 天前 预合并成功(commit_id: 0c133578639db40322af75c13ac3e96da1d7e8da)
CANN-robot
CANN-robot成员
24 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
24 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
24 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
24 天前 添加了label:ci-pipeline-passed
YeZZzzz1成员
24 天前 评论:

/lgtm

likedislike
yanqingshang成员
24 天前 评论:

/approve

likedislike
mlidongfeng
mlidongfeng成员
24 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
24 天前 添加了label:lgtmapproved
CANN-robotCANN-robot成员
24 天前 合入了pull request