Pull Request已成功合入, 合并人@CANN-robot
(感谢 jiang-mingming01 的贡献)compile


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 | ✅ 王涛, 张子菁 (2/2) | ✅ 王涛, 张子菁 (2/1) |
| include | ✅ 王涛, 张子菁 (2/2) | ✅ 王涛, 张子菁 (2/1) |
| src/platform | ✅ shikai-1, 王涛 (2/2) | ✅ shikai-1 (1/1) |
| tests/ut/platform | ✅ shikai-1, 王涛 (2/2) | ✅ shikai-1 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
jiang-mingming01, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线任务触发成功
任务链接 [5120fca2e3c14d8fbdbd99ca689ced9c][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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_part1 | ✅ SUCCESS | ||
| UT_Test_msprof_part2 | ✅ SUCCESS | ||
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS |
[2026-06-26 17:18:18] CI执行结束


流水线任务触发成功
任务链接 [ea3ee6908c9b4cf18aaa40b61c394582][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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-26 17:16:53] CI执行结束


变更摘要
此 PR 从对外公开接口中删除了 short SOC version(短 SoC 版本)的枚举值及相关映射。short SOC version 属于内部概念,不应对用户暴露;对外查询 NPU 架构应使用 ACL_PLATFORM_NPU_ARCH。同时新增了 aclplatformNpuArch 枚举(定义已知 NPU 架构常量,如 DAV_1001 等)和 aclplatformLocalMemType 枚举(本地内存类型映射),并在 kDevInfoTable 中补充了 ACL_PLATFORM_NPU_ARCH 与 ACL_PLATFORM_MEMORY_TYPE 的映射条目。对应的单元测试用例也同步删除。
主要改动
- 移除 short SOC version 枚举值:在
include/external/acl/acl_platform.h的aclplatformDevInfo枚举中删除了 short SOC version 对应的枚举项,该值仅内部使用,不对外暴露。 - 新增
aclplatformNpuArch枚举:在acl_platform.h中新增了aclplatformNpuArch枚举,定义DAV_1001至DAV_RESV等 NPU 架构常量,作为对外查询 NPU 架构的标准化方式。 - 更新
kDevInfoTable映射表:在src/platform/acl_platform.cpp的kDevInfoTable中删除了 short SOC version 的映射行,新增了ACL_PLATFORM_NPU_ARCH(映射到[version] NpuArch)和ACL_PLATFORM_MEMORY_TYPE(映射到[SoCInfo] memory_type)条目。 - 新增
aclplatformLocalMemType枚举:在acl_platform.h中定义了L0_A至HBM的本地内存类型枚举,并附带与aclplatformDevInfo的对应关系注释。 - 删除相关单元测试:在
tests/ut/platform/ut/testcase/platform_manager_acl_utest.cpp中移除了 short SOC version 对应的测试用例。


这个已经开出去了,直接修改会不会有兼容性问题?


Pull Request
描述
经过讨论,short soc verion是内部使用的,不对外暴露。对外没有这个概念,对外可以查NPU ARCH。 现在产品以及算子以前使用仓间接口获取short soc verion的都正在计划整改了。后续就不依赖了。
此 ABI 不兼容变更;因为功能还没发布,没有调用方,不影响兼容性
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
1.无
2.
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。