

Pull Request has been successfully merged by CANN-robot.
(Thank you for W4termy's contribution.)变更摘要
本 PR 围绕 bundle 的跨 DSO 类型标识与异常离线 dump 修复展开:一方面在 tile_fwk_bundle.version 中导出 std::any<long> 的内部管理器符号 _ZNSt3any17_Manager_internalIlE9_S_manage*,解决 bundle 跨 DSO 的类型标识问题;另一方面为 bundle 引入稳定的 displayName(由 bundle key 或文件路径生成),贯穿 kernel_bundle_loader、LaunchBundleKernelOnce 直至 AICPU 的 opName 与 kernel 名称,并重构 AICORE/AICPU 异常 dump 逻辑(校验参数、改用 mixed 操作数计数、离线场景回退),从而避免 bundle 启动时离线异常 dump 段错误。
主要改动
- 导出
std::any<long>管理器符号: 在tile_fwk_bundle.version中新增导出_ZNSt3any17_Manager_internalIlE9_S_manage*,保证std::any<long>跨 DSO 的类型身份一致。 - 引入 bundle
displayName并传入启动链路:kernel_bundle_loader新增BundleKeyName/BundlePathName生成稳定名称,LoadedBundle新增displayName字段,LaunchBundleKernelOnce签名新增displayName参数并经pypto_bundle_api.cpp透传,AICPU 启动时通过新增的MakeAicpuOpName写入aicpuArgs->opName,kernel 名称由固定的"PyPTO_bundle_kernel"改为实际displayName。 - 修复离线异常 dump 段错误并加参数校验:
device_exception_dump.cpp用TILE_FWK_BUNDLE_STANDALONE宏隔离aicore_compiler.h依赖的DumpNoSubFuncBundledKernel调用;GetAicoreExceptionDumpInfo增加对 kernel 参数完整性及负 tensor 计数的校验,GetDeviceExceptionDumpInfo新增exceptionDumpSize参数并批量填充kernelDisplayName。 - 重构 AICPU 异常 dump 的命名与 tensor 解析:
GetAicpuExceptionDumpInfo不再从上次编译函数构造"PyPTO_Aicpu_"前缀,而是优先取运行时kernelName/functionName,显示名优先取aicpuArgs->opName,离线时回退到"PyPTO_Aicpu_bundle_kernel";tensor 计数统一按 mixed 操作数列表(nMixed,nOut弃用)解析,并新增FillExceptionKernelDisplayName。 - 调整
AiCpuArgs结构与测试:machine_ws_intf.h中将opName由const char[32]改为可写的char[32];UT 新增离线 AICPU 异常(opName/functionName/bundle 回退)用例,并更新 mixed tensor 计数与 displayName 相关断言。


compile


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.
You can self-configure the PR merge rules for this repository. For more details, please refer to 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 |
|---|---|---|
| framework/src/machine | ✅ jason_yuan_ye, gaoxingwang (2/2) | ✅ jason_yuan_ye (1/1) |
| repo-cann/pypto | ✅ gaoxingwang, jason_yuan_ye (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
W4termy, thanks for your pull request. All authors of the commits have signed the CLA. 👍


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/lgtm

