| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(machine): AicorePrint enhance Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !1813 merge aicprint into master feat(machine): AicorePrint enhance Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: 1. 支持打印bf16/fp16变量 eg: AiCoreLogF(param->ctx, "ub_bf16[0]=%f\n", ((bfloat16\_t \_\_ubuf\_\_ *)ubTensor\_0.GetAddr())[0]); 2. 提供打印shape接口 eg: AiCorePrintShape(param->ctx, Shape4Dim(sym\_15\_dim\_0, sym\_15\_dim\_1, sym\_15\_dim\_2, sym\_15\_dim\_3)); 3. 提供打印gm tensor数据接口 eg: AiCorePrintGmTensor(param->ctx, (\_\_gm\_\_ float*)gmTensor\_0.GetAddr(), 8, 0); 4. 提供打印ub tensor接口 eg: AiCorePrintUbTensor(param->ctx, (bfloat16_t \_\_ubuf\_\_ *)ubTensor\_0.GetAddr(), 8, 0); See merge request: cann/pypto!1813 | 8 个月前 | |
fix(config): Fix config scope stack leak for combine_axis and related options Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !1673 merge fix_jit_scope into master fix(config): Fix config scope stack leak for combine_axis and related options Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: 问题描述1: HostMachine 在 SubAllStashedTask 中执行 stashed 编译任务时,会通过 Restore 将 各任务的 config scope 压入栈,但原先缺少对应的 EndScope 弹出。导致: - 编译完成后 scope 栈未恢复,后续 get_operation_options() 等读取到错误配置 - 异常退出时同样未弹出,scope 栈持续增长 修复方案: - 新增 config::ScopedRestore RAII 类:构造时 PushScope,析构时 EndScope - SubAllStashedTask 使用 ScopedRestore 替代手动 Restore,保证正常/异常路径下 都能正确弹出 scope - parser: 为 pypto.loop(1) 补充 name 参数,便于 scope 追踪 Related Issue: [#655](https://gitcode.com/cann/pypto/issues/655) , [#669](https://gitcode.com/cann/pypto/issues/669) 问题描述2: 本次将 devRunner.SynchronizeDeviceToHostProfData() 替换为直接调用 devRunner.DumpAiCoreExecutionTimeData()。因原函数通过 CFG_RUNTIME_DBEUG_MODE 做条件拦截,但 Python 前端配置存于 JIT 而非配置树,导致该配置无法读取、目标逻辑无法触发;修改后可绕过拦截,确保 DumpAiCoreExecutionTimeData() 稳定执行。 See merge request: cann/pypto!1673 | 8 个月前 |