Merged
Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz #2889
pantongAdd on Jun 16
Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz #2889
Merged
pantongAdd on Jun 16
pantong
Jun 16

Pull Request

描述

扩展 TSD 插件包加载逻辑,使 Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz(HCOMM 兼容包),并新增针对 910B 的兼容能力位判断。

主要变更:

  1. src/tsd/tsdclient/src/process_mode_manager.cpp
    • 在 PKG_CHIP_SUPPORT_MAP 中为 cann-hcomm-compat.tar.gz 增加 tsd::CHIP_ASCEND_910B 支持。
    • 在 ProcessModeManager::LoadSinglePackageToDevice 中,通过 GetPlatInfoChipType() 获取当前芯片类型,当芯片为 910B 且加载 cann-hcomm-compat.tar.gz 时,结合 IsSupportCommonInterface(TSD_SUPPORT_CANN_HCOMM_COMPAT_910B) 判断 device 是否支持,不支持则安全跳过加载。
  2. src/tsd/pub_facility/util_func/tsd_util_func.h
    • 将兼容能力位常量 TSD_SUPPORT_CANN_TSCH_COMPAT(值 9)重命名为 TSD_SUPPORT_CANN_HCOMM_COMPAT_910B,使语义与 910B HCOMM 兼容能力一致。

变更类型

请选择本次引入的变更类型:

关联的Issue

#633

如何测试

根据代码变更,测试场景如下:

  1. 910B 芯片插件包加载功能测试
    • 在 Ascend 910B 环境下,验证 cann-hcomm-compat.tar.gz 能被正确识别并加载到 device。
  2. 兼容能力位判断测试
    • 构造 device 不支持 TSD_SUPPORT_CANN_HCOMM_COMPAT_910B 能力位的场景,验证 910B 加载 cann-hcomm-compat.tar.gz 时会安全跳过加载,并打印 device does not support cann-hcomm-compat package, skip load to device 日志。
    • 构造 device 支持该能力位的场景,验证插件包正常加载。
  3. 多芯片兼容性回归测试
    • 验证 950 / 350 / CLOUD_V5 等原有支持芯片加载 cann-hcomm-compat.tar.gz 行为不受影响。
  4. 编译构建验证
    • 验证常量重命名(TSD_SUPPORT_CANN_TSCH_COMPAT → TSD_SUPPORT_CANN_HCOMM_COMPAT_910B)后全量编译通过,无遗漏引用。

核对清单

其他信息

本次变更涉及 TSD 插件包按芯片类型加载的兼容性逻辑,重点保证 910B 芯片在 device 能力位匹配时正确加载 HCOMM 兼容包,在不匹配时安全跳过,不影响其他芯片型号的既有行为。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for pantong's contribution.)
Ppantong
Jun 16 Added label: enhancement
Ppantong
Jun 16 Created pull request, commit a09637b3
CANN-robotCANN-robotCollaborators
Jun 16 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robotCollaborators
Jun 16 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
src/tsd ✅ LiWei79, Reyn52166 (2/2) ✅ LiWei79 (1/1)
tests/ut/tsd ✅ LiWei79, Reyn52166 (2/2) ✅ LiWei79 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
pantong
Jun 16 Comments:

compile

likedislike
Ppantong
Jun 16 Pre merge succeeded (commit_id: 4962634e7566e68e02c06514d19478042863fd06)
Ppantong
Jun 16 Change title to "Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz", originally titled "【PR】: 简要描述".
Ppantong
Jun 16 Modify description of pull request
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

流水线任务触发成功
任务链接 [f30975a7e49840039e66dc56e6d49621][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test_acl ✅ SUCCESS >>>>>
UT_Test_rts_v201 ✅ SUCCESS >>>>>
UT_Test_rts_c ✅ SUCCESS >>>>>
UT_Test_rts_david ✅ SUCCESS >>>>>
UT_Test_rts_910b ✅ SUCCESS >>>>>
UT_Test_rts_common ✅ SUCCESS >>>>>
UT_Test_platform ✅ SUCCESS >>>>>
UT_Test_qs ✅ SUCCESS >>>>>
UT_Test_aicpusd ✅ SUCCESS >>>>>
UT_Test_tsd ✅ SUCCESS >>>>>
UT_Test_error_manager ✅ SUCCESS >>>>>
UT_Test_slog ✅ SUCCESS >>>>>
UT_Test_atrace ✅ SUCCESS >>>>>
UT_Test_msprof ✅ SUCCESS >>>>>
UT_Test_adump ✅ SUCCESS >>>>>
UT_Test_mmpa ✅ SUCCESS >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>
UT_Test_rts_report ✅ SUCCESS >>>>>

[2026-06-16 22:37:40]    CI执行结束

likedislike
CANN-robot
CANN-robotCollaborators
Jun 16 Comments:

流水线任务触发成功
任务链接 [3568a6efa0d54880a0ec6ec5edf2d093][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Check_Pr ✅ SUCCESS
codecheck_style ✅ SUCCESS >>>>>
codecheck_precommit ⚠️ WARNING >>>>> >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS

[2026-06-16 22:33:40]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Jun 16 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Jun 16 Added label: ci-pipeline-passed
DevLeevCollaborators
Jun 17 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Jun 17 Added label: approved
leihuan1Collaborators
Jun 17 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Jun 17 Added label: lgtm
CANN-robotCANN-robotCollaborators
Jun 17 Merged pull request