Merged
fix(machine): Fix missing unit issue. #5489
chaizhengtongAdd on Aug 17
fix(machine): Fix missing unit issue. #5489
Merged
chaizhengtongAdd on Aug 17
chaizhengtong
chaizhengtongCollaborators
Aug 17
修复日志中单位的缺失,使日志信息更便于阅读
likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for chaizhengtong's contribution.)
chaizhengtongchaizhengtongCollaborators
Aug 17 Created pull request, commit bdb2285d
atomgit-bot
atomgit-bot
Aug 17 Comments:

变更摘要

本 PR 主要针对 framework/src/machine 下日志信息中缺失计量单位的问题进行修复,通过在内存大小、元素数量、层级深度等日志中补充 bytes、count、levels、KB 等单位,并统一部分日志的参数命名与格式,使日志信息更便于阅读。改动集中在 main_block.cpp、memory_pool.cpp、device_launcher.cpp、aicore_print_host_manager.cpp、dev_encode_workspace.cpp 等文件中,不涉及业务逻辑变更。

主要改动

  • 为内存/数据大小日志补充 bytes 单位: 在 KernelBundleLoader、AllocHostAddr、DeviceLauncher、DevMemoryPool、EmulationMemoryUtils、aicore_model_kernel_meta_hook.h 等多处涉及 size 的日志中统一补充 bytes,如 "size=%zu" 改为 "size=%zu bytes"。
  • 为数量统计日志补充 count 单位: 在 main_block.cpp 的 linearArgList too small 日志及 dev_encode.cpp 的 raw size 日志中为 size=%zu 补充 count,以区分数量与字节。
  • 为深度/层级日志补充 levels 单位: 将 main_block.cpp 中 runtimeAnd nesting depth 与 dev_encode_workspace.cpp 中 stitch depth 系列日志的深度字段标注为 levels。
  • 优化 AicorePrintHostManager 日志格式与信息: 在分配、清零、拷贝打印缓冲区相关日志中补充 size=%lu bytes,并将核心编号统一改为 coreId=%u,同时调整日志参数顺序使其更直观。
  • 细化 LogWorkspaceEncodeSummary 中的单位标注: 对 stitch_1、encoded_tensor_budget、context_workspace、metadata、runtimeOutcastPoolSize 等字段分别标注 bytes,对计数与深度字段标注 count、levels、KB,并统一日志换行格式。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Aug 17 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Aug 17 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Aug 17 Comments:

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.
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
repo-cann/pypto ✅ jason_yuan_ye, gaoxingwang (2/2) ✅ jason_yuan_ye (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

chai-hw, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
90 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Aug 18 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Aug 18 Added label: ci-pipeline-passed
CANN-robot
CANN-robotCollaborators
Aug 18 Comments:

The MR can not be merged, because of CodeReview discussion not resolved

If you want to solve this problem, you can click here to do it in the FAQs.

likedislike
袁野袁野Collaborators
Aug 18 Resolved final issue
CANN-robotCANN-robotCollaborators
Aug 18 Merged pull request