

Pull Request has been successfully merged by CANN-robot.
(Thank you for W4termy's contribution.)变更摘要
本 PR 修复了 bundle 启动失败时未上报排队错误的问题,并将 bundle 的 AICPU 启动路径从直接调用 RuntimeAicpuKernelLaunchExWithArgs 切换为通过新增的 LaunchPyptoRunWithHostArgs 接口(内部调用 LoadAicpuOp::LaunchBuiltInOpWithHostArgs(desc, "PyptoRun"))完成启动,同时把 AICPU 启动参数结构从 RtAicpuArgsEx/RtHostInputInfo 迁移为 AicpuLaunchDesc/AicpuHostInput。该改动属于 9.2.0 分支的 master 同步修复。
主要改动
- 启动失败时上报排队错误:在
pypto_bundle_api.cpp的LaunchImpl中,当dynamic::LaunchBundleKernelOnce返回非零错误码时,调用ErrorManager::Instance().OutputErrorMessage()输出错误管理器中的排队错误信息,使 bundle 启动失败的错误可被及时上报。 - AICPU 启动入口切换:
kernel_bundle_launch.cpp中的BundleLaunchAicpu签名由RtAicpuArgsEx& rtArgs改为AicpuLaunchDesc& launchDesc,ctrl/sched 两次启动均通过设置launchDesc.stream、launchDesc.blockDim后调用LaunchPyptoRunWithHostArgs代替原有的RuntimeAicpuKernelLaunchExWithArgs。 - 新增
LaunchPyptoRunWithHostArgs接口:在load_aicpu_op.cpp/load_aicpu_op.h中新增该函数,委托LoadAicpuOp::GetInstance().LaunchBuiltInOpWithHostArgs(desc, "PyptoRun")完成启动;注释说明 bundle 调用方不应在自己的共享库中实例化头文件内联的LoadAicpuOp单例,而应解析运行时库内已初始化的内建句柄。 - AICPU 启动参数结构迁移:
LaunchBundleKernelOnce中构建启动参数由RtAicpuArgsEx+RtHostInputInfo改为AicpuLaunchDesc+AicpuHostInput,相应填充hostInputs、hostInputNum、timeout、args、argsSize等字段,仅保留输入张量指针的主机侧地址重定位逻辑。


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) |
💡 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. 👍


compile


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


/approve


/lgtm

