Merged
fix(machine): Fix missing unit issue. #5489
chaizhengtongAdd on Aug 17
fix(machine): Fix missing unit issue. #5489
Merged
Merged fromchai-hw/pypto_chaimachine_formatintocann/pyptomaster
chaizhengtongCollaborators
Aug 17
Aug 17


Pull Request has been successfully merged by CANN-robot.
(Thank you for chaizhengtong's contribution.)Aug 17 Created pull request, commit bdb2285d
atomgit-bot
Aug 17 Comments:
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,并统一日志换行格式。


Incorrect?
atomgit-bot
Aug 17 Comments:
Aug 17 Comments:
Aug 17 Added label: cann-cla/yes
CANN-robot
Aug 17 Comments:
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
/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 messages are collapsed here。 See more
Aug 18 Removed label: ci-pipeline-running
Aug 18 Added label: ci-pipeline-passed
CANN-robot
Aug 18 Comments:
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.


Aug 18 Resolved final issue
Aug 18 Merged pull request