已合并
fix(machine): Fix missing unit issue. #5489
chaizhengtong创建于 8月17日
fix(machine): Fix missing unit issue. #5489
已合并
chaizhengtong成员
8月17日
8月17日


Pull Request已成功合入, 合并人@CANN-robot
(感谢 chaizhengtong 的贡献)8月17日 创建了 pull request,commit bdb2285d
atomgit-bot
8月17日 评论:
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,并统一日志换行格式。


不准确?
atomgit-bot
8月17日 评论:
8月17日 评论:
8月17日 添加了label:cann-cla/yes
CANN-robot
8月17日 评论:
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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


此处折叠了90条消息 查看更多
8月18日 删除了label:ci-pipeline-running
8月18日 添加了label:ci-pipeline-passed
CANN-robot
8月18日 评论:
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.


8月18日 解决了最后一个问题
8月18日 合入了pull request