已合并
refactor: 按公开接口头平铺 C API 实现并简化调用层 #5773
lihuaichao创建于 20 天前
refactor: 按公开接口头平铺 C API 实现并简化调用层 #5773
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 lihuaichao 的贡献)20 天前 创建了 pull request,commit 7fb5e44d
atomgit-bot
20 天前 评论:
20 天前 评论:
🤖 正在生成合并请求摘要,请稍候…


不准确?
atomgit-bot
20 天前 评论:
20 天前 评论:
🤖 AI 代码检视正在进行中,请稍候…


不准确?
20 天前 添加了label:cann-cla/yes
CANN-robot
20 天前 评论:
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 |
|---|---|---|
| docs | ✅ munanhw, wuyang_hw, Lycheeeee (3/2) | ✅ munanhw (1/1) |
| impl/c_api | ✅ Lycheeeee, wuyang_hw (2/2) | ✅ Lycheeeee (1/1) |
| include/c_api | ✅ wuyang_hw, Lycheeeee, wuzhaolin (3/2) | ✅ wuzhaolin (1/1) |
| include/c_api/reg_compute | ✅ horming, wuyang_hw, Lycheeeee (3/2) | ✅ horming (1/1) |
| repo-cann/asc-devkit | ✅ Lycheeeee, wuyang_hw (2/2) | ✅ Lycheeeee, wuyang_hw (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
lihuaichao, thanks for your pull request. All authors of the commits have signed the CLA. 👍


此处折叠了188条消息 查看更多
18 天前 添加了label:approved
18 天前 合入了pull request
描述
C API 原实现使用多层聚合头,公开头会引入无关实现。本变更按实际声明接口的公开头平铺实现,并消除无意义的私有函数转发层。
#if defined(__NPU_ARCH__) && (__NPU_ARCH__ == 3510)包含同名专用头,专用头不反向包含公共接口实现头;为三个 composite 接口增加公共分发入口。关联的Issue
无。
测试
接口迁移后已完成公开入口及实现头语法编译、接口对比。本次格式修复使用与CI一致的clang-format 18.1.8,调整两处vadds调用的参数换行,无非空白字符变更;UT、安装目录和重复包含结果来自此前验证。
文档更新
更新中英文 C API 贡献指南、目录结构说明以及已有 C API UT 目录映射,说明公共入口、架构专用实现与必要辅助函数的组织方式。
类型标签