文件最后提交记录最后更新时间
【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge msqope into master 【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 对 aicpu_schedule 中 message queue 的 msq so 调用路径进行整理,并拆分 MsqOperatorManager 独立模块。 主要修改内容如下: 1. 新增独立模块: - core/aicpusd_msq_operator_manager.h - core/aicpusd_msq_operator_manager.cpp 2. 由 MsqOperatorManager 统一负责 libaicpu_msq_operator.sodlopen/dlsym、符号管理以及 CallV1* / CallV2* 调用收口。 3. MsqImplV1/V2 改为通过 MsqOperatorManager 调用对应 MsqV1* / MsqV2* 符号。 4. LoadAllSymbols 调整为基于 map 的符号表加载方式,MSQ_OPERATOR_SO_NAME 调整为 std::string。 5. 更新 aicpu_schedule/CMakeLists.txt,将新增源文件纳入构建。 6. 在 MsqOperatorManager 调用收口位置补充函数级维测日志。 本次修改不改变现有 MsqImplV1/V2 的接口语义,主要用于增强代码模块隔离性和后续可维护性。 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 在 runtime/build 目录执行: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 2. 确认以下目标编译并链接成功: - host_aicpu_scheduler_so - queue_schedule_so 3. 确认新增模块已正确参与构建,并且 aicpusd_message_queue.cpp 能正常引用 MsqOperatorManager。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次构建验证已通过,验证命令如下: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 说明: - 本次补充的是函数级维测日志,统一放在 MsqOperatorManager 调用封装结尾。 - 当前未在 so 内部增加寄存器级日志,后续如需进一步增强寄存器维测,可在 libaicpu_msq_operator.so 内部继续补充。 See merge request: cann/runtime!23782 天前
【PR】: 简要描述 [fix]clean compile warnning Co-authored-by: j00427146<jialimin1@huawei.com> # message auto-generated for no-merge-commit merge: !2578 merge master into master 【PR】: 简要描述 [fix]clean compile warnning Created-by: jialimin1 Commit-by: j00427146 Merged-by: cann-robot Description: # Pull Request ## 描述 清理 runtime 模块中的编译警告,提高代码质量。本次修改涉及 11 个文件,主要包括: - 修复类型转换警告 - 清理未使用的变量 - 规范代码格式 ### 变更文件清单: 1. src/aicpu_sched/aicpu_schedule/core/aicpusd_model.cpp (+1/-0) 2. src/aicpu_sched/aicpu_schedule/stub/proc_mgr/aicpusd_proc_mgr_sys_operator_agent.h (+1/-1) 3. src/queue_schedule/common/feature_ctrl_open.cpp (+3/-2) 4. src/queue_schedule/dgwclient/dgw_client.cpp (+27/-25) 5. src/tsd/basic_component/device_comm/hdc_client.cpp (+1/-1) 6. src/tsd/common/src/package_process_config.cpp (+2/-2) 7. src/tsd/pub_facility/util_func/tsd_util_func.cpp (+1/-1) 8. src/tsd/tsdclient/inc/client_manager.h (+1/-1) 9. src/tsd/tsdclient/src/client_manager.cpp (+1/-1) 10. src/tsd/tsdclient/src/process_mode_manager.cpp (+4/-4) 11. src/tsd/tsdclient/src/process_mode_msg_parse.cpp (+1/-1) ## 变更类型 请选择本次引入的变更类型: - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #590 ## 如何测试 描述测试此变更的步骤和前提条件: 1. **编译验证测试** - 执行完整编译流程,确保无编译警告 - 验证所有修改的文件能正常编译通过 2. **功能回归测试** - 验证修改后的功能模块正常运行 - 执行相关单元测试用例 3. **代码质量检查** - 确认编译警告已清除 - 代码静态分析通过 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次修改主要针对编译警告的清理,不影响功能逻辑。所有变更均为代码质量改进,无功能性变更。 See merge request: cann/runtime!25781 天前
【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge msqope into master 【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 对 aicpu_schedule 中 message queue 的 msq so 调用路径进行整理,并拆分 MsqOperatorManager 独立模块。 主要修改内容如下: 1. 新增独立模块: - core/aicpusd_msq_operator_manager.h - core/aicpusd_msq_operator_manager.cpp 2. 由 MsqOperatorManager 统一负责 libaicpu_msq_operator.sodlopen/dlsym、符号管理以及 CallV1* / CallV2* 调用收口。 3. MsqImplV1/V2 改为通过 MsqOperatorManager 调用对应 MsqV1* / MsqV2* 符号。 4. LoadAllSymbols 调整为基于 map 的符号表加载方式,MSQ_OPERATOR_SO_NAME 调整为 std::string。 5. 更新 aicpu_schedule/CMakeLists.txt,将新增源文件纳入构建。 6. 在 MsqOperatorManager 调用收口位置补充函数级维测日志。 本次修改不改变现有 MsqImplV1/V2 的接口语义,主要用于增强代码模块隔离性和后续可维护性。 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 在 runtime/build 目录执行: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 2. 确认以下目标编译并链接成功: - host_aicpu_scheduler_so - queue_schedule_so 3. 确认新增模块已正确参与构建,并且 aicpusd_message_queue.cpp 能正常引用 MsqOperatorManager。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次构建验证已通过,验证命令如下: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 说明: - 本次补充的是函数级维测日志,统一放在 MsqOperatorManager 调用封装结尾。 - 当前未在 so 内部增加寄存器级日志,后续如需进一步增强寄存器维测,可在 libaicpu_msq_operator.so 内部继续补充。 See merge request: cann/runtime!23782 天前
【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge msqope into master 【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 对 aicpu_schedule 中 message queue 的 msq so 调用路径进行整理,并拆分 MsqOperatorManager 独立模块。 主要修改内容如下: 1. 新增独立模块: - core/aicpusd_msq_operator_manager.h - core/aicpusd_msq_operator_manager.cpp 2. 由 MsqOperatorManager 统一负责 libaicpu_msq_operator.sodlopen/dlsym、符号管理以及 CallV1* / CallV2* 调用收口。 3. MsqImplV1/V2 改为通过 MsqOperatorManager 调用对应 MsqV1* / MsqV2* 符号。 4. LoadAllSymbols 调整为基于 map 的符号表加载方式,MSQ_OPERATOR_SO_NAME 调整为 std::string。 5. 更新 aicpu_schedule/CMakeLists.txt,将新增源文件纳入构建。 6. 在 MsqOperatorManager 调用收口位置补充函数级维测日志。 本次修改不改变现有 MsqImplV1/V2 的接口语义,主要用于增强代码模块隔离性和后续可维护性。 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 在 runtime/build 目录执行: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 2. 确认以下目标编译并链接成功: - host_aicpu_scheduler_so - queue_schedule_so 3. 确认新增模块已正确参与构建,并且 aicpusd_message_queue.cpp 能正常引用 MsqOperatorManager。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次构建验证已通过,验证命令如下: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 说明: - 本次补充的是函数级维测日志,统一放在 MsqOperatorManager 调用封装结尾。 - 当前未在 so 内部增加寄存器级日志,后续如需进一步增强寄存器维测,可在 libaicpu_msq_operator.so 内部继续补充。 See merge request: cann/runtime!23782 天前
【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge msqope into master 【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 对 aicpu_schedule 中 message queue 的 msq so 调用路径进行整理,并拆分 MsqOperatorManager 独立模块。 主要修改内容如下: 1. 新增独立模块: - core/aicpusd_msq_operator_manager.h - core/aicpusd_msq_operator_manager.cpp 2. 由 MsqOperatorManager 统一负责 libaicpu_msq_operator.sodlopen/dlsym、符号管理以及 CallV1* / CallV2* 调用收口。 3. MsqImplV1/V2 改为通过 MsqOperatorManager 调用对应 MsqV1* / MsqV2* 符号。 4. LoadAllSymbols 调整为基于 map 的符号表加载方式,MSQ_OPERATOR_SO_NAME 调整为 std::string。 5. 更新 aicpu_schedule/CMakeLists.txt,将新增源文件纳入构建。 6. 在 MsqOperatorManager 调用收口位置补充函数级维测日志。 本次修改不改变现有 MsqImplV1/V2 的接口语义,主要用于增强代码模块隔离性和后续可维护性。 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 在 runtime/build 目录执行: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 2. 确认以下目标编译并链接成功: - host_aicpu_scheduler_so - queue_schedule_so 3. 确认新增模块已正确参与构建,并且 aicpusd_message_queue.cpp 能正常引用 MsqOperatorManager。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次构建验证已通过,验证命令如下: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 说明: - 本次补充的是函数级维测日志,统一放在 MsqOperatorManager 调用封装结尾。 - 当前未在 so 内部增加寄存器级日志,后续如需进一步增强寄存器维测,可在 libaicpu_msq_operator.so 内部继续补充。 See merge request: cann/runtime!23782 天前
refactor: rename duplicate runtime headers Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2400 merge increname into master refactor: rename duplicate runtime headers Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 处理 runtime 仓内重复 basename 头文件的命名冲突问题,按模块前缀对相关头文件进行重命名,并同步更新仓内源码、UT、桩代码和必要的 CMake include 路径引用,避免重名头文件带来的 include 歧义。 主要变更包括: - 为 tsd 相关重名头文件增加 tsd_ 前缀 - 为 aicpu_kernel 重名头文件增加 aicpu_kernel_ 前缀 - 为 queue_schedule 相关重名头文件增加 bqs_ / qs_ 前缀 - 为多个 ProcMgrSysOperatorAgent.h 按模块重命名 - 删除 queue_schedule/stub 下重复的 bqs_server.h,统一引用已有的 server/bqs_server.h - 同步更新对应源码、UT、stub 和 CMake 中的 include 路径 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue https://gitcode.com/cann/runtime/issues/558 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 检查仓内相关源码、UT、stub 中旧头文件名引用已全部替换为新名字。 2. 检查 queue_schedule 相关 CMake include 路径已覆盖重命名后的头文件目录。 3. 执行 bash tests/build_ut.sh --ut=aicpusd --target=queue_schedule_ut,确认目标可正常编译并进入 UT 执行阶段。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次修改不涉及业务逻辑调整,主要是头文件重命名及其引用联动更新。 See merge request: cann/runtime!24007 天前
【描 述】 aicpu datadump Co-authored-by: j00427146<jialimin1@huawei.com> # message auto-generated for no-merge-commit merge: !1260 merge master into master 【描 述】 aicpu datadump Created-by: jialimin1 Commit-by: j00427146 Merged-by: cann-robot Description: ## 描述 aicpu 支持datadump降低ctrlcpu负载 ## 关联的Issue Issue #519 <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!126017 天前
add opensource code Co-authored-by: duanpengliang<duanpengliang@huawei.com> 4 个月前
[fix] Fix log description of tsd and aicpusd Co-authored-by: FengHaozhan<fenghaozhan@huawei.com> # message auto-generated for no-merge-commit merge: !2388 merge fix-log into master [fix] Fix log description of tsd and aicpusd Created-by: FengHaozhan Commit-by: FengHaozhan Merged-by: cann-robot Description: # Pull Request ## 描述 本 PR 主要处理 tsd 与 aicpusd 相关日志质量问题,并补齐部分 tsdclient 增量 UT: - 批量修正 aicpusd、profiling、tsdclient 路径中的英文日志拼写、语法和表达不准确问题,统一 success、initialize、process、response 等表述,提升日志可读性和检索一致性。 - 补充 tsdclient 相关 UT,覆盖互斥文件打开失败、文件加锁失败、HDC 握手响应类型不匹配、halHdcRecv 失败、文件写失败、文件删除失败等日志分支,降低后续日志整理回归风险。 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #556 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 执行 tsdclient coverage 构建与 UT 回归: - cmake --build build_cov --target tsdclient -j8 - make -C build_cov -f tests/ut/tsd/tsdclient/CMakeFiles/tsd_client_utest.dir/build.make tests/ut/tsd/tsdclient/tsd_client_utest -j8 - ./build_cov/tests/ut/tsd/tsdclient/tsd_client_utest --gtest_brief=1 2. 重点验证新增用例: - SendAICPUPackageComplex_012_OpenMutexFileFailed - SendAICPUPackageComplex_013_FileLockFailed - CommCreateSession_CheckHdcConnection_RspTypeMismatch - RecvHdcDefaultMsg_HalHdcRecvFailed_DfxAttrCheckFailed - RemoveOneFileRemoveFailed - ReWriteAicpuPackageWriteFail 3. coverage 结果: - 644 tests from 19 test suites passed - 增量 CHG 覆盖率:22 / 27 = 81.48% ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 - 本次变更不涉及对外接口调整,主要是日志表述修正与 tsdclient 增量 UT 补齐。 - 当前增量 CHG 覆盖率为 81.48%,剩余未覆盖新增行主要集中在 aicpu_thread_package_workerprocess_mode_manager 的少量分支。 See merge request: cann/runtime!23888 天前
【PR】: 简要描述 [fix]clean compile warnning Co-authored-by: j00427146<jialimin1@huawei.com> # message auto-generated for no-merge-commit merge: !2578 merge master into master 【PR】: 简要描述 [fix]clean compile warnning Created-by: jialimin1 Commit-by: j00427146 Merged-by: cann-robot Description: # Pull Request ## 描述 清理 runtime 模块中的编译警告,提高代码质量。本次修改涉及 11 个文件,主要包括: - 修复类型转换警告 - 清理未使用的变量 - 规范代码格式 ### 变更文件清单: 1. src/aicpu_sched/aicpu_schedule/core/aicpusd_model.cpp (+1/-0) 2. src/aicpu_sched/aicpu_schedule/stub/proc_mgr/aicpusd_proc_mgr_sys_operator_agent.h (+1/-1) 3. src/queue_schedule/common/feature_ctrl_open.cpp (+3/-2) 4. src/queue_schedule/dgwclient/dgw_client.cpp (+27/-25) 5. src/tsd/basic_component/device_comm/hdc_client.cpp (+1/-1) 6. src/tsd/common/src/package_process_config.cpp (+2/-2) 7. src/tsd/pub_facility/util_func/tsd_util_func.cpp (+1/-1) 8. src/tsd/tsdclient/inc/client_manager.h (+1/-1) 9. src/tsd/tsdclient/src/client_manager.cpp (+1/-1) 10. src/tsd/tsdclient/src/process_mode_manager.cpp (+4/-4) 11. src/tsd/tsdclient/src/process_mode_msg_parse.cpp (+1/-1) ## 变更类型 请选择本次引入的变更类型: - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue #590 ## 如何测试 描述测试此变更的步骤和前提条件: 1. **编译验证测试** - 执行完整编译流程,确保无编译警告 - 验证所有修改的文件能正常编译通过 2. **功能回归测试** - 验证修改后的功能模块正常运行 - 执行相关单元测试用例 3. **代码质量检查** - 确认编译警告已清除 - 代码静态分析通过 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次修改主要针对编译警告的清理,不影响功能逻辑。所有变更均为代码质量改进,无功能性变更。 See merge request: cann/runtime!25781 天前
【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Co-authored-by: zhaowenrui666<zhaowenrui7@huawei.com> # message auto-generated for no-merge-commit merge: !2378 merge msqope into master 【PR】: refactor: 拆分 MsqOperatorManager 模块并接入 msq so 调用 Created-by: zhaowenrui666 Commit-by: zhaowenrui666 Merged-by: cann-robot Description: # Pull Request ## 描述 本次 PR 对 aicpu_schedule 中 message queue 的 msq so 调用路径进行整理,并拆分 MsqOperatorManager 独立模块。 主要修改内容如下: 1. 新增独立模块: - core/aicpusd_msq_operator_manager.h - core/aicpusd_msq_operator_manager.cpp 2. 由 MsqOperatorManager 统一负责 libaicpu_msq_operator.sodlopen/dlsym、符号管理以及 CallV1* / CallV2* 调用收口。 3. MsqImplV1/V2 改为通过 MsqOperatorManager 调用对应 MsqV1* / MsqV2* 符号。 4. LoadAllSymbols 调整为基于 map 的符号表加载方式,MSQ_OPERATOR_SO_NAME 调整为 std::string。 5. 更新 aicpu_schedule/CMakeLists.txt,将新增源文件纳入构建。 6. 在 MsqOperatorManager 调用收口位置补充函数级维测日志。 本次修改不改变现有 MsqImplV1/V2 的接口语义,主要用于增强代码模块隔离性和后续可维护性。 ## 变更类型 请选择本次引入的变更类型: - [ ] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [x] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [x] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue 无 ## 如何测试 描述测试此变更的步骤和前提条件: 1. 在 runtime/build 目录执行: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 2. 确认以下目标编译并链接成功: - host_aicpu_scheduler_so - queue_schedule_so 3. 确认新增模块已正确参与构建,并且 aicpusd_message_queue.cpp 能正常引用 MsqOperatorManager。 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 本次构建验证已通过,验证命令如下: cmake --build /home/jiumao/open/runtime/build --target host_aicpu_scheduler_so queue_schedule_so -j4 说明: - 本次补充的是函数级维测日志,统一放在 MsqOperatorManager 调用封装结尾。 - 当前未在 so 内部增加寄存器级日志,后续如需进一步增强寄存器维测,可在 libaicpu_msq_operator.so 内部继续补充。 See merge request: cann/runtime!23782 天前