文件最后提交记录最后更新时间
【PR】: 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 Co-authored-by: 刘进<liujin5@huawei.com> # message auto-generated for no-merge-commit merge: !2570 merge feature/acl-symbol-interface-clean into master 【PR】: 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 Created-by: liujinHW Commit-by: 刘进 Merged-by: cann-robot Description: # Pull Request ## 描述 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue https://gitcode.com/cann/runtime/issues/511 ## 如何测试 描述测试此变更的步骤和前提条件: - 符号地址查询正确 - 符号大小查询正确 - 符号拷贝数据正确(写入/读取数据一致) - 异步拷贝在 Stream 中正确执行 - 多符号并发操作不互相干扰 - Binary 销毁后符号自动清理 - ACL 错误码返回正确 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!257019 小时前
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!24164 天前
feat: SOMA memory pool management Co-authored-by: Sky_miner<liuyichen23@huawei.com> # message auto-generated for no-merge-commit merge: !498 merge master into master feat: SOMA memory pool management Created-by: Sky_miner Commit-by: Sky_miner Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/runtime/issues/148 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!4983 个月前
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!24164 天前
[binary]feat: SOMA memory malloc and free async Co-authored-by: yang_pengwei<yangpengwei6@huawei.com> Co-authored-by: t00931625<tangpeixin1@huawei.com> # message auto-generated for no-merge-commit merge: !641 merge br_soma_allocfree into master [binary]feat: SOMA memory malloc and free async Created-by: yang_pengwei Commit-by: t00931625;yang_pengwei Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 新增异步内存申请释放接口 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/runtime/issues/148 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!6412 个月前
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!24164 天前
Initial commit 5 个月前
【PR】: 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 Co-authored-by: 刘进<liujin5@huawei.com> # message auto-generated for no-merge-commit merge: !2570 merge feature/acl-symbol-interface-clean into master 【PR】: 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 Created-by: liujinHW Commit-by: 刘进 Merged-by: cann-robot Description: # Pull Request ## 描述 新增Runtime API 设备全局变量符号symbol相关接口,本PR为对应的aclrt接口 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [x] 📝 文档内容更新 ## 关联的Issue https://gitcode.com/cann/runtime/issues/511 ## 如何测试 描述测试此变更的步骤和前提条件: - 符号地址查询正确 - 符号大小查询正确 - 符号拷贝数据正确(写入/读取数据一致) - 异步拷贝在 Stream 中正确执行 - 多符号并发操作不互相干扰 - Binary 销毁后符号自动清理 - ACL 错误码返回正确 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!257019 小时前
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!24164 天前
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!24164 天前
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!24164 天前
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!24164 天前
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!24164 天前
Initial commit 5 个月前
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!24164 天前
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!24164 天前
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!24164 天前
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!24164 天前
【PR】: refactor: 拆分Runtime生命周期重构基础能力 Co-authored-by: xiangyang0909<huxiangyang1@huawei.com> # message auto-generated for no-merge-commit merge: !2559 merge future/lifecycle_pr1a_foundation into master 【PR】: refactor: 拆分Runtime生命周期重构基础能力 Created-by: xiangyang0909 Commit-by: xiangyang0909 Merged-by: cann-robot Description: # Pull Request ## 描述 本 PR 是 Runtime 生命周期重构拆分后的 基础部分第一批次,聚焦低耦合的生命周期地基和叶子对象整改,不包含 Runtime/Context/Stream/Event/Notify/Model/Pool/SOMA/RawDevice/npu_driver_queue 主链,也不包含 P0 direct-exit 专项。 主要变更: - 提取 runtime handle guard 初始化/失效 helper,保持 handle 失效语义集中可读。 - 拆分 InitCallbackManager 注册/反注册/通知公共逻辑,补充 OTHER 类型 callback 顺序验证。 - 为 AicpuErrMsg、ArgLoader、UbArgLoader、UmaArgLoader、CtrlResEntry、TaskFactory、DeviceSnapshot、Module 等低耦合对象补充显式 TearDown 或幂等收口。 - 为 KernelTable、Program、Label 等对象补充析构职责拆分 helper 和 handle invalid 验证。 - 补充对应 UT,覆盖 TearDown 幂等、destroy 后 handle invalid、callback 顺序等基础语义。 本 PR 目标是先合入生命周期重构的基础能力,降低后续主链整改的检视范围和合入风险。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无。 ## 如何测试 描述测试此变更的步骤和前提条件: 1. git diff --check --ignore-cr-at-eol upstream/master...HEAD 2. cmake --build build -j1 --target runtime_utest 3. cmake --build build -j1 --target runtime_utest_api_910B 4. cmake --build build -j1 --target ascendcl_utest 5. cmake --build build -j1 --target runtime_utest_model runtime_utest_task_normal 6. build/tests/ut/runtime/runtime/runtime_utest --gtest_filter='AicpuErrMsgTest.TearDownIsIdempotent:ArgLoaderTest.uma_arg_loader_teardown_is_idempotent:CtrlTaskPoolEntryTest.TearDownIsIdempotent:KernelTest.kernel_table_destroy_releases_remaining_kernels:ModuleTest.TearDownIsIdempotent:ProgramTest.Program_Destructor_Skip_KernelNameMap_Duplicate' 7. build/tests/ut/runtime/runtime/test/platform/910B/runtime_utest_api_910B --gtest_filter='CloudV2AicpuErrMsgTest.TearDownIsIdempotent:CloudV2ArgLoaderTest.uma_arg_loader_teardown_is_idempotent:SnapshotTest.DeviceSnapshotTearDownIsIdempotent' 8. build/tests/ut/acl/testcase/ascendcl_cpp_utest --gtest_filter='UTEST_ACL_Runtime.InitCallbackManager_NotifyOrderForOtherType:UTEST_ACL_Runtime.InitCallbackManager_FinalizeNotifyOrderForOtherType' 9. build/tests/ut/runtime/runtime/runtime_utest_model --gtest_filter='LabelTest.label_handle_invalid_after_destroy' 10. build/tests/ut/runtime/runtime/runtime_utest_task_normal --gtest_filter='TaskTest.TaskFactory_TearDownIsIdempotent' 补充说明:高并发构建曾出现 cc1plus Killed,判断为本地资源压力;上述目标均已用 -j1 顺序重跑通过。 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 - 源分支:xiangyang0909:future/lifecycle_pr1a_foundation - 目标分支:cann/runtime:master - 提交:ebd59cd3fc9869810a264f3a855e19c92ffc2d9a - 忽略行尾统计:38 files changed, 507 insertions(+), 71 deletions(-) See merge request: cann/runtime!255919 小时前
fix callback coredump Co-authored-by: luoyuzhou2<luoyuzhou2@huawei.com> # message auto-generated for no-merge-commit merge: !1236 merge master into master fix callback coredump Created-by: luoyuzhou2 Commit-by: luoyuzhou2 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 测试用例执行完之后在main函数的 } 行 coredump,解析栈发现 core在 InitCallbackManager::UnRegFinalizeCallback 函数中 访问 std::lock_guard<std::recursive_mutex> lock(mutex_); 中的 mutex_ 报错,经定位发现该mutex_是一个全局变量的引用,触发Unreg时,该全局变量已被释放。 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> - 必现用例测试验证通过 - 冒烟用例通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!12362 个月前
【PR】: feat:新增Runtime API 设备function symbol相关接口 Co-authored-by: wangbincheng6080<wangbincheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2444 merge symbol-new into master 【PR】: feat:新增Runtime API 设备function symbol相关接口 Created-by: wangbincheng6080 Commit-by: wangbincheng6080 Merged-by: cann-robot Description: # Pull Request ## 描述 请清晰准确地描述本次 Pull Request 的意图和变更内容。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> [#515](https://gitcode.com/cann/runtime/issues/515) ## 如何测试 描述测试此变更的步骤和前提条件: 1.更换runtime包至最新版本,并使用新版本毕昇编译器编译测试代码,将自定义device核函数注册进kernelTable_ 2.调用aclrtGetFuncBySymbol接口,获取kernel函数指针对用的function handle 3.将获取到的function symbol正常通过kernelLaunch接口下发,观察算子执行结果是否符合预期 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!24443 天前
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!24164 天前
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!24164 天前
【feat】: Memcpy、Memset系列接口支持 size=0 Co-authored-by: liukejin<liukejin@huawei.com> # message auto-generated for no-merge-commit merge: !2371 merge support_size_zero into master 【feat】: Memcpy、Memset系列接口支持 size=0 Created-by: liukejin Commit-by: liukejin Merged-by: cann-robot Description: # Pull Request ## 描述 feat: Memcpy、Memset系列接口支持 size=0 标准行为 memcpy(dest, src, 0):标准规定,如果 n(第三个参数)为0,函数不进行任何复制,可以返回 dest 指针,是一种空操作。 memset(dest, value, 0):同样,如果 n 为0,函数不进行任何写入,可以返回 dest 指针,也是一种空操作。 接口列表: - aclrtMemcpy - aclrtMempyAsync - clrtMemcpyAsyncWithCondition - aclrtMemset - aclrtMemsetD32 - aclrtMemsetAsync - aclrtMemsetD32Async - aclrtMemcpyBatch - aclrtMemcpyBatchAsync - aclrtMemcpyAsyncWithOffset - aclrtMemcpy2d - aclrtMemcpy2dAsync ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. 编译通过 2. rdv通过 ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!237116 小时前
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!24164 天前
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!24164 天前
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!24164 天前
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!24164 天前