| refactor: 为aclrt_impl实现增加C链接块
Co-authored-by: wangtao43<wangtao43@huawei.com>
# message auto-generated for no-merge-commit merge:
!2416 merge remove-stream-buffer-len into master
refactor: 为aclrt_impl实现增加C链接块
Created-by: wangtao43
Commit-by: wangtao43
Merged-by: cann-robot
Description: # Pull Request
## 描述
为 src/acl/aclrt_impl 下 C 形式导出的 cpp 实现补充文件级 extern "C" 块,与 acl_rt_impl.h 的声明方式保持一致。
## 变更类型
- [ ] Bug 修复
- [x] 新功能
- [ ] 代码风格更新(格式化,局部变量)
- [x] 重构(既不修复错误也不增加功能的代码变动)
- [ ] 构建过程或辅助工具的变动
- [ ] 文档内容更新
## 关联的Issue
无
## 如何测试
- git diff --check origin/master...HEAD
- rg -n "extern \"C\" [A-Za-z_]" src/acl/aclrt_impl -g "*.cpp",确认无函数前缀式 extern "C" 写法
- 对本次修改的 aclrt_impl cpp 文件执行 -fsyntax-only 检查,结果通过
- source /usr/local/Ascend/cann/set_env.sh && CCACHE_DIR=/tmp/ccache-runtime bash build.sh --cann_3rd_lib_path=/home/code/runtime/output/third_party -j8
说明:build.sh 当前失败在 protobuf_host_build 的 CMake cache 源目录冲突,报错为 output/third_party/protobuf-src 与 build/protobuf-src 不一致;该失败与本次 aclrt_impl 源码修改无关。
## 核对清单
- [x] 我的代码遵循了项目的代码风格
- [x] 我已对代码进行了自测
- [ ] 我已更新了相关的文档
- [x] 我在标题中使用了合适的类型标签(如:feat:, fix:)
- [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等
## 其他信息
无
See merge request: cann/runtime!2416 | 4 天前 |