已合并
Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz #2889
pantong创建于 6月16日
Ascend 910B 芯片支持加载 cann-hcomm-compat.tar.gz #2889
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 pantong 的贡献)6月16日 添加了label:cann-cla/yes
CANN-robot
6月16日 评论:
6月16日 评论:
CANN-robot
6月16日 评论:
6月16日 评论:
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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


6月16日 添加了label:ci-pipeline-running
CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [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执行结束


CANN-robot
6月16日 评论:
6月16日 评论:
流水线任务触发成功
任务链接 [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执行结束


6月16日 删除了label:ci-pipeline-running
6月16日 添加了label:ci-pipeline-passed
6月17日 添加了label:approved
6月17日 添加了label:lgtm
6月17日 合入了pull request
Pull Request
描述
扩展 TSD 插件包加载逻辑,使 Ascend 910B 芯片支持加载
cann-hcomm-compat.tar.gz(HCOMM 兼容包),并新增针对 910B 的兼容能力位判断。主要变更:
src/tsd/tsdclient/src/process_mode_manager.cppPKG_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 是否支持,不支持则安全跳过加载。src/tsd/pub_facility/util_func/tsd_util_func.hTSD_SUPPORT_CANN_TSCH_COMPAT(值 9)重命名为TSD_SUPPORT_CANN_HCOMM_COMPAT_910B,使语义与 910B HCOMM 兼容能力一致。变更类型
请选择本次引入的变更类型:
关联的Issue
#633
如何测试
根据代码变更,测试场景如下:
cann-hcomm-compat.tar.gz能被正确识别并加载到 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日志。cann-hcomm-compat.tar.gz行为不受影响。TSD_SUPPORT_CANN_TSCH_COMPAT→TSD_SUPPORT_CANN_HCOMM_COMPAT_910B)后全量编译通过,无遗漏引用。核对清单
其他信息
本次变更涉及 TSD 插件包按芯片类型加载的兼容性逻辑,重点保证 910B 芯片在 device 能力位匹配时正确加载 HCOMM 兼容包,在不匹配时安全跳过,不影响其他芯片型号的既有行为。