已合并
fix(machine): Fix missing unit issue. #5489
chaizhengtong创建于 8月17日
fix(machine): Fix missing unit issue. #5489
已合并
chaizhengtong创建于 8月17日
chaizhengtong
chaizhengtong成员
8月17日
修复日志中单位的缺失,使日志信息更便于阅读
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chaizhengtong 的贡献)
chaizhengtongchaizhengtong成员
8月17日 创建了 pull request,commit bdb2285d
atomgit-bot
atomgit-bot
8月17日 评论:

变更摘要

本 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
不准确?
atomgit-bot
atomgit-bot
8月17日 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
8月17日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
8月17日 评论:

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条消息 查看更多
CANN-robotCANN-robot成员
8月18日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
8月18日 添加了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
8月18日 评论:

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
袁野袁野成员
8月18日 解决了最后一个问题
CANN-robotCANN-robot成员
8月18日 合入了pull request