| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[Profiling]【feat】:对齐CUDA接口,Profiling未开启时aclprof系列接口静默返回不报错 Co-authored-by: z296249221<zhengkai40@huawei.com> # message auto-generated for no-merge-commit merge: !5137 merge profiling-feat-aclprof-mark into master [Profiling]【feat】:对齐CUDA接口,Profiling未开启时aclprof系列接口静默返回不报错 Created-by: z296249221 Commit-by: z296249221 Merged-by: cann-robot Description: # Pull Request ## 描述 算子团队使用 ACL 对外 Profiling 接口替换包间内部接口。当前 aclprof 系列接口在 Profiling 未开启时按"未初始化"路径返回错误,导致上层算子将"未开启 Profiling"误判为业务失败。 本 PR 对齐 CUDA 接口行为,对 8 个 aclprof 接口调整 Profiling 未开启状态下的行为: 1. **未开启时静默返回,不打印错误日志、不上报错误信息**(msprof_tx_manager.cpp): - aclprofCreateStamp 返回 nullptr - aclprofDestroyStamp 直接返回 - aclprofMark/aclprofMarkEx/aclprofPush/aclprofPop/aclprofRangeStart/aclprofRangeStop 返回 ACL_SUCCESS - 由调用方传入的空指针等参数仍按既有参数校验规则处理 2. **取消 helper 场景的专门不支持判断**(msproftx_adaptor.cpp):8 个接口删除 PlatformIsHelperHostSide() 判断,helper 场景按普通场景执行;Set* 系列 4 个接口不在本需求范围、保持原有行为 3. **按接口类别统计调用次数**:新增 stamp/标记栈/range 三类 atomic 计数器,适配层 8 个接口入口计数;进程退出或 Profiling 组件反初始化时(MsprofTxManager::UnInit)通过一次 Event 日志输出三类接口调用汇总,随后计数清零 4. **Profiling 已开启时行为不变**:原有数据上报、参数校验、资源管理完全保持 ## 变更类型 - [x] ✨ 新功能 ## 关联的Issue 无 ## 如何测试 1. 未开启 Profiling 的进程中分别调用 8 个接口,验证返回值矩阵(CreateStamp 为 nullptr、其余有返回值接口为 ACL_SUCCESS)且无错误日志与错误上报 2. helper 场景调用 8 个接口,验证不再返回 ACL_ERROR_FEATURE_UNSUPPORTED 3. Profiling 已开启时调用接口,验证 stamp/mark/push/pop/range 数据上报结果不变 4. 调用三类接口后结束进程,验证 Event 日志各类别计数准确且每个生命周期仅输出一次 5. 空指针等参数错误场景仍按既有校验返回 ACL_ERROR_INVALID_PARAM 已执行:msprof_utest 79/79、msprofiler_utest 794/794、prof_api_utest 161/161、msprof_bin_utest 117/117、job_wrapper 262/262 全部通过;pre-commit(clang-format/OAT)通过 ## 核对清单 - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我在标题中使用了合适的类型标签(如:feat:, fix:) ## 其他信息 涉及接口:aclprofCreateStamp、aclprofDestroyStamp、aclprofMark、aclprofMarkEx、aclprofPush、aclprofPop、aclprofRangeStart、aclprofRangeStop。不新增用户侧接口,不修改接口签名(acl_prof.h 无变更)。 See merge request: cann/runtime!5137 | 22 天前 | |
【Profiling】芯片宏和专有名词整改 Co-authored-by: chenminghao11<chenminghao11@hisilicon.com> # message auto-generated for no-merge-commit merge: !5034 merge mdc into master 【Profiling】芯片宏和专有名词整改 Created-by: chenminghao11 Commit-by: chenminghao11 Merged-by: cann-robot Description: # Pull Request ## 描述 请清晰准确地描述本次 Pull Request 的意图和变更内容。 芯片宏和专有名词整改 ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [x] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> NA ## 如何测试 描述测试此变更的步骤和前提条件: 1.本地测试 2. ## 核对清单 <!-- [x] 表示选中 --> - [ ] 我的代码遵循了项目的代码风格 - [ ] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [ ] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!5034 | 28 天前 | |
elevate acl_rt_headers visibility to device level Co-authored-by: liuyang163<yangliu163@huawei.com> # message auto-generated for no-merge-commit merge: !2324 merge master into master elevate acl_rt_headers visibility to device level Created-by: liuyang163 Commit-by: liuyang163 Merged-by: cann-robot Description: # Pull Request ## 描述 elevate acl_rt_headers visibility to device level ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. 2. ## 核对清单 <!-- [x] 表示选中 --> - [ ] 我的代码遵循了项目的代码风格 - [ ] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [ ] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!2324 | 4 个月前 | |
elevate acl_rt_headers visibility to device level Co-authored-by: liuyang163<yangliu163@huawei.com> # message auto-generated for no-merge-commit merge: !2324 merge master into master elevate acl_rt_headers visibility to device level Created-by: liuyang163 Commit-by: liuyang163 Merged-by: cann-robot Description: # Pull Request ## 描述 elevate acl_rt_headers visibility to device level ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 --> ## 如何测试 描述测试此变更的步骤和前提条件: 1. 2. ## 核对清单 <!-- [x] 表示选中 --> - [ ] 我的代码遵循了项目的代码风格 - [ ] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [ ] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!2324 | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 22 天前 | ||
| 28 天前 | ||
| 4 个月前 | ||
| 4 个月前 |