已合并
feat(build): support ascend960dt soc compilation #171
zhang-wenbo-beat创建于 13 天前
feat(build): support ascend960dt soc compilation #171
已合并
zhang-wenbo-beat创建于 13 天前
zhang-wenbo-beat
13 天前

描述

新增支持 ascend960 芯片编译,共修改 4 处:

  • CMakeLists.txt:ASCEND_ALL_COMPUTE_UNIT 增加 ascend960dt
  • build.sh:SUPPORT_COMPUTE_UNIT_SHORT 支持 --soc=ascend960dt
  • scripts/kernel/binary_script/build_env.sh:SOC_MAP 增加 [Ascend960DT]="Ascend960DT_968B7"
  • tests/ut/op_api/stub/opdev/platform.h:SocVersion 枚举增加 ASCEND960DT

关联的Issue

关联Issue #106

测试

  • 已通过验证

文档更新

无

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhang-wenbo-beat 的贡献)
zhang-wenbo-beatzhang-wenbo-beat
13 天前 创建了 pull request,commit dd62aadc
atomgit-bot
atomgit-bot
13 天前 评论:

变更摘要

本 PR 为 dav_9201 / arch35 家族的 ascend960dt(Ascend960DT_968B7)芯片新增编译支持。改动集中在构建脚本与单测桩:build.sh 的 SUPPORT_COMPUTE_UNIT_SHORT 补充 ascend960dt,build_env.sh 的 SOC_MAP 增加对应 SoC 映射,tests/ut/op_api/stub/opdev/platform.h 的 SocVersion 枚举增加 ASCEND960DT,使该芯片可被 --soc=ascend960dt 识别并纳入编译与单测路径。

主要改动

  • 编译目标支持 ascend960dt: build.sh 在 SUPPORT_COMPUTE_UNIT_SHORT 数组中新增 ascend960dt,使 --soc=ascend960dt 能被识别并纳入编译单元。
  • SoC 映射新增 Ascend960DT: scripts/kernel/binary_script/build_env.sh 的 SOC_MAP 增加 [Ascend960DT]="Ascend960DT_968B7",建立该芯片名到具体型号的映射。
  • 单测桩枚举扩展: tests/ut/op_api/stub/opdev/platform.h 的 SocVersion 枚举新增 ASCEND960DT,供单测侧识别该 SoC 版本。

🧩 本次 Review 已使用自定义 Skill:

likedislike
不准确?
CANN-robot
CANN-robot成员
13 天前 评论:

Hi @zhang-wenbo-beat, welcome to submitting your first PR to ops-ras!

PR Merge Steps

1. CLA Signing

If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.

2. CI Check

Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.

3. Code Review

After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.

likedislike
atomgit-bot
atomgit-bot
13 天前 评论:

代码审查

✅ 未发现问题


🧩 本次 Review 已使用自定义 Skill:

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

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
repo-cann/ops-ras ✅ 柳宗谷, yue-ma (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

zhang-wenbo-beat, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改标题为 “feat(build): support ascend960 soc compilation”,原标题为“feat(build): support ascend960dt soc compilation”
此处折叠了5条事件消息 查看更多
CANN-robotCANN-robot成员
13 天前 添加了label:cann-cla/yes
zhang-wenbo-beat
zhang-wenbo-beat
13 天前 评论:

compile

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
13 天前 评论:

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

任务名称状态日志下载链接
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>

[2026-10-15 15:52:54]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
13 天前 评论:

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

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_single_ubuntu24 ✅ SUCCESS >>>>> >>>>>
UT_Test_ophost ✅ SUCCESS
UT_Test_opapi ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>

[2026-10-15 16:03:46]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
13 天前 评论:

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

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_Pr ✅ SUCCESS
codecheck_codestyle ✅ SUCCESS >>>>>
codecheck_precommit ✅ SUCCESS >>>>>

[2026-10-15 15:56:28]    CI执行结束

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:api-check-pass
CANN-robotCANN-robot成员
13 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
13 天前 添加了label:ci-pipeline-passed
LiuZonggu成员
13 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:approved
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改标题为 “feat(build): support ascend960dt soc compilation”,原标题为“feat(build): support ascend960 soc compilation”
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改了pull request 的描述
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改了pull request 的描述
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改了pull request 的描述
zhang-wenbo-beatzhang-wenbo-beat
13 天前 修改了pull request 的描述
yue-ma成员
13 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
13 天前 添加了label:lgtm
CANN-robotCANN-robot成员
13 天前 关闭了关联的issue
CANN-robotCANN-robot成员
13 天前 合入了pull request
LLiuZonggu成员
13 天前 修改了pull request 的描述