已合并
add ascend350 config #92
dongfei创建于 20 天前
add ascend350 config #92
已合并
dongfei创建于 20 天前
dongfei
dongfei
20 天前

描述

add ascend350 config

关联的Issue

https://gitcode.com/cann/ops-ras/issues/28

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 dongfei 的贡献)
dongfeidongfei
20 天前 创建了 pull request,commit 414851f4
atomgit-bot
atomgit-bot
20 天前 评论:

变更摘要

本 PR 旨在新增 ascend350 平台的配置支持:在构建脚本的可支持计算单元列表与单元测试桩代码的平台枚举中补充 ascend350,并让示例构建逻辑按 arch35 架构目录查找该平台的示例文件,使其获得与 ascend950 一致的处理路径。改动同时包含少量格式整理,不涉及业务逻辑的新增接口或数据结构变更。

主要改动

  • 构建脚本支持列表新增 ascend350: 在 build.shSUPPORT_COMPUTE_UNIT_SHORT 数组中新增一个 "ascend350" 条目(该列表随后会按字符串长度从长到短排序以支持前缀匹配)。
  • build_example() 新增 ascend350 分支: 在 build.sh 的示例查找逻辑中新增 if [[ "$COMPUTE_UNIT" == "ascend350" ]] 分支,与 ascend950 一致地从 */${OP_NAME}/examples/arch35/${pattern}*.cpp 路径下匹配示例文件。
  • SocVersion 枚举新增 ASCEND350: 在 tests/ut/op_api/stub/opdev/platform.hSocVersion 枚举中新增 ASCEND350 枚举值,使桩代码支持该平台的版本标识。
  • platform.h 代码风格整理: 对 platform.h 进行格式化调整,包括指针/引用写法统一(如 fe::PlatFormInfos*PlatformInfo&)、NpuArch 枚举合并为单行、许可证注释换行及中文注释空格修正,无逻辑变更。
likedislike
不准确?
atomgit-bot
atomgit-bot
20 天前 评论:

代码审查

✅ 未发现问题

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

Hi @ASCEND222, 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
CANN-robotCANN-robot成员
20 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
20 天前 评论:

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 冯彤, 顾宝成 (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

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

likedislike
dongfeidongfei
19 天前 修改了pull request 的描述
dongfeidongfei
19 天前 修改了pull request 的描述
gubaocheng成员
19 天前 评论:

/lgtm

likedislike
dongfei
dongfei
18 天前 评论:
likedislike
rxtfeng成员
18 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
18 天前 添加了label:lgtmapproved
llimwang成员
18 天前 评论:

/approve

likedislike
dongfei
dongfei
18 天前 评论:

compile

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

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

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

[2026-09-05 10:23:05]    CI执行结束

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

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

任务名称状态日志下载链接
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-09-05 10:24:58]    CI执行结束

likedislike
CANN-robotCANN-robot成员
18 天前 添加了label:api-check-pass
CANN-robotCANN-robot成员
18 天前 删除了label:api-check-pass
CANN-robot
CANN-robot成员
18 天前 评论:

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

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

[2026-09-05 10:29:59]    CI执行结束

likedislike
CANN-robotCANN-robot成员
18 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
18 天前 添加了label:ci-pipeline-passed
CANN-robotCANN-robot成员
18 天前 合入了pull request