| Files | Last commit | Last update |
|---|---|---|
feat(machine): Migrate aicore print to host-side management for capture Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5216 merge feat/aicore-print-host-mgr into master feat(machine): Migrate aicore print to host-side management for capture Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: feat(machine): Migrate aicore print to host-side management for capture The aicore print log mechanism was managed on the device side (AICPU) via AicoreLogManager, which reads logs synchronously inside AiCoreManager::RunTask. This breaks Stream recording semantics in capture (aclgraph) mode and couples print buffer management with scheduling logic. This PR moves aicore print buffer management to the host side. Changes: - Add AicorePrintHostManager: host allocates per-core HBM ring buffers, injects addresses into shakeBuffer[5] via H2D, and D2H-copies + decodes TLV records to host log after task sync - Integrate AicorePrintHostManager into DeviceRunner; skip sync and dump in capture mode to preserve recording - Skip debug sync and data-dump sync in DeviceLauncher when in capture mode - Remove device-side AicoreLogManager, InitLogger/DumpAicoreLog/logger_ from AiCoreManager, and shakeBuffer write from AiCoreHal - Add Newline record type and EncodeNewline for per-log separation; support BindHostBuffer/GetConsumedTail for host-side decoding in AicoreLogger Related Issues: #2846 See merge request: cann/pypto!5216 | 3 months ago | |
feat(machine): Migrate aicore print to host-side management for capture Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5216 merge feat/aicore-print-host-mgr into master feat(machine): Migrate aicore print to host-side management for capture Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: feat(machine): Migrate aicore print to host-side management for capture The aicore print log mechanism was managed on the device side (AICPU) via AicoreLogManager, which reads logs synchronously inside AiCoreManager::RunTask. This breaks Stream recording semantics in capture (aclgraph) mode and couples print buffer management with scheduling logic. This PR moves aicore print buffer management to the host side. Changes: - Add AicorePrintHostManager: host allocates per-core HBM ring buffers, injects addresses into shakeBuffer[5] via H2D, and D2H-copies + decodes TLV records to host log after task sync - Integrate AicorePrintHostManager into DeviceRunner; skip sync and dump in capture mode to preserve recording - Skip debug sync and data-dump sync in DeviceLauncher when in capture mode - Remove device-side AicoreLogManager, InitLogger/DumpAicoreLog/logger_ from AiCoreManager, and shakeBuffer write from AiCoreHal - Add Newline record type and EncodeNewline for per-log separation; support BindHostBuffer/GetConsumedTail for host-side decoding in AicoreLogger Related Issues: #2846 See merge request: cann/pypto!5216 | 3 months ago | |
feat(machine): Migrate aicore print to host-side management for capture Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5216 merge feat/aicore-print-host-mgr into master feat(machine): Migrate aicore print to host-side management for capture Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: feat(machine): Migrate aicore print to host-side management for capture The aicore print log mechanism was managed on the device side (AICPU) via AicoreLogManager, which reads logs synchronously inside AiCoreManager::RunTask. This breaks Stream recording semantics in capture (aclgraph) mode and couples print buffer management with scheduling logic. This PR moves aicore print buffer management to the host side. Changes: - Add AicorePrintHostManager: host allocates per-core HBM ring buffers, injects addresses into shakeBuffer[5] via H2D, and D2H-copies + decodes TLV records to host log after task sync - Integrate AicorePrintHostManager into DeviceRunner; skip sync and dump in capture mode to preserve recording - Skip debug sync and data-dump sync in DeviceLauncher when in capture mode - Remove device-side AicoreLogManager, InitLogger/DumpAicoreLog/logger_ from AiCoreManager, and shakeBuffer write from AiCoreHal - Add Newline record type and EncodeNewline for per-log separation; support BindHostBuffer/GetConsumedTail for host-side decoding in AicoreLogger Related Issues: #2846 See merge request: cann/pypto!5216 | 3 months ago | |
feat(machine): Migrate aicore print to host-side management for capture Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5216 merge feat/aicore-print-host-mgr into master feat(machine): Migrate aicore print to host-side management for capture Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: feat(machine): Migrate aicore print to host-side management for capture The aicore print log mechanism was managed on the device side (AICPU) via AicoreLogManager, which reads logs synchronously inside AiCoreManager::RunTask. This breaks Stream recording semantics in capture (aclgraph) mode and couples print buffer management with scheduling logic. This PR moves aicore print buffer management to the host side. Changes: - Add AicorePrintHostManager: host allocates per-core HBM ring buffers, injects addresses into shakeBuffer[5] via H2D, and D2H-copies + decodes TLV records to host log after task sync - Integrate AicorePrintHostManager into DeviceRunner; skip sync and dump in capture mode to preserve recording - Skip debug sync and data-dump sync in DeviceLauncher when in capture mode - Remove device-side AicoreLogManager, InitLogger/DumpAicoreLog/logger_ from AiCoreManager, and shakeBuffer write from AiCoreHal - Add Newline record type and EncodeNewline for per-log separation; support BindHostBuffer/GetConsumedTail for host-side decoding in AicoreLogger Related Issues: #2846 See merge request: cann/pypto!5216 | 3 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(dfx): Refine exception callback Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !3727 merge exception into master feat(dfx): Refine exception callback Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: 背景:device的返回值需要在rt_error_codes.h中定义的错误码范围内,exceptioncallback里才能区别出不同报错场景 1. 避免对cann的依赖,新增device_error_code.h(error_code.h头文件超大),重新集中定义 PYPTO_DEVICE_xx 错误码宏,和rt_error_codes.h保持一致,覆盖 107/207/507 三段。 2. device_utils.h 中 DEVICE_MACHINE_xx 改为引用 PYPTO_DEVICE_xx,消除硬编码值。 3. device_error_tracking 重构:报错打屏格式和PTA/cann error保持一致,GetRetcodeMessage 查表输出错误描述;PyPTOExceptionInfoCallBack 按 expandInfo.type 判断 union 分支,仅 AICore 异常时安全读取 kernelName,其余类型输出 (Null),避免越界脏数据。 4. 超时检测手动trap 5. 后续device新增代码请直接使用 errco_code.h 中的 PYPTO_DEVICE_xx 返回值 6. 进一步优化依赖后续device machine void整改 See merge request: cann/pypto!3727 | 5 months ago | |
feat(dfx): AICERR supports offline loading of binary Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !5274 merge aic2 into master feat(dfx): AICERR supports offline loading of binary Created-by: meiqing2 Commit-by: meiqing2 Merged-by: cann-robot Description: 1. CompileAICoreKernel增加 enableSubFunc入参,控制编译NoSubFuncKernel 2. exception dump增加BundledKernel、NoSubFuncBundledKernel 3. debug_aicore_error.py 支持离线加载二进制做单算子复现 4. 增加资料说明 See merge request: cann/pypto!5274 | 3 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(dfx): Runtime memory overlap check Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !5107 merge duanhaotian7 into master feat(dfx): Runtime memory overlap check Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: dump运行时各个op的读写信息以及每个op的读写范围大小并dump运行时整体内存使用情况统计,基于相关dump数据和topo序,设计内存重叠检测脚本,检测是否存在 内存重叠 See merge request: cann/pypto!5107 | 3 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
fix(Interpreter):Add interface to tile_fwk_adapter Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !5390 merge master into master fix(Interpreter):Add interface to tile_fwk_adapter Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. 上板dump用到的接口封装到adapter层 See merge request: cann/pypto!5390 | 3 months ago | |
feat(machine): Support offline compilation and packaging Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !4974 merge jd into master feat(machine): Support offline compilation and packaging Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 支持离线打包二进制 See merge request: cann/pypto!4974 | 3 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
refactor(machine): Using KernelLaunchInfo and decouple device pref from device runner Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !3542 merge br_runtime into master refactor(machine): Using KernelLaunchInfo and decouple device pref from device runner Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 1、Kernel launch的所需要的可变的入参统一由新增的KernelLaunchInfo承载 2、把device perf相关的逻辑解耦出去 See merge request: cann/pypto!3542 | 5 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(dfx): Runtime memory overlap check Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !5107 merge duanhaotian7 into master feat(dfx): Runtime memory overlap check Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: dump运行时各个op的读写信息以及每个op的读写范围大小并dump运行时整体内存使用情况统计,基于相关dump数据和topo序,设计内存重叠检测脚本,检测是否存在 内存重叠 See merge request: cann/pypto!5107 | 3 months ago | |
fix(function): Prevent coredump when JIT loop recording aborts mid-path Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !4996 merge 0720_seg into master fix(function): Prevent coredump when JIT loop recording aborts mid-path Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: ## Summary 修复 JIT 录制在 loop 中途失败后继续编译/运行导致的 heap corruption( corrupted size vs. prev_size / double free),并完善异常路径下的 Program 生命周期管理。 ## Problem 上一个kernal 在 pypto.loop 录制中途失败(如 transpose 参数校验)时: 1. 异常路径若仍走 EndFunction() 或 Reset() 析构不完整 loop-path 图,会破坏堆; 2. RecordLoopFunc 在异常 unwind 与进程退出 frame 清理时被二次析构,对空 loopStack_ 执行 pop_back() 触发 coredump。 ## Solution - **录制 abort**:pypto.function 异常时改调 AbortRecording(),不再 EndFunction() - **不完整图保活**:AbandonIncompleteRecording() 将半成品图泄漏至 AbandonedGraphPool,避免 ~Function - **成功编译 pin**:RegisterLastCompiledKernel() 通过 KernelBinary::pinnedGraph_ 持有 functionmap,Reset() 可安全 clear() - **Python 缓存**:JIT __call__ 失败时 _drop_kmodule_cache(),避免复用脏 KernelModule - **Loop 析构**:RecordLoopFunc::~RecordLoopFunc() 仅在仍为 stack 顶时才 pop(幂等) - **优化**:HasIncompleteRecordingState() 使 abort 路径幂等;CompileIfNeeded 仅在状态仍脏时清理 ## Changed Files | 层 | 文件 | |----|------| | C++ | program.cpp/h, recorder.cpp, tensor_slot.h, kernel_binary.cpp/h | | Bindings | runtime.cpp, controller.cpp | | Python | _controller.py, frontend/parser/entry.py | See merge request: cann/pypto!4996 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
refactor(machine): Reduce private variable of DeviceRunner and decouple runtime agent Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !3342 merge br_machine into master refactor(machine): Reduce private variable of DeviceRunner and decouple runtime agent Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 1、内存相关的操作从runtime agent中抽离出去,只保留对寄存器信息的获取 2、梳理device runner的代码,减少非必要的成员变量 See merge request: cann/pypto!3342 | 6 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
fix(machine): Fix dump perf data under multi-round by another way Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !3917 merge br_runtime into master fix(machine): Fix dump perf data under multi-round by another way Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 1. 原本这个问题,在跑多轮情况下,只有第一轮dump的原因是只有第一轮从C侧获取的runtime_debug_mode是1,后续多轮获取的都是0,导致只有第一轮会同步数据,后续不会同步数据。 2. 之前修复方式是还原之前的代码逻辑,即从py侧触发的kernel launch每次都强制去同步数据。 3. 现在进一步定位发现,py侧的options同步给C侧只有在触发编译的时候才会做,多轮的情况下,只有第一轮才会触发编译,后续多轮复用第一次的编译结果。因此修复方案即为同步options给C侧的调用,每次都会调用,而不是只在编译的时候才调用。 See merge request: cann/pypto!3917 | 5 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 5 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 5 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 6 months ago | ||
| 4 months ago | ||
| 5 months ago | ||
| 4 months ago | ||
| 4 months ago |