| Files | Last commit | Last update |
|---|---|---|
feat(machine): Refactor device dfx Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5077 merge refactor-device-dfx into master feat(machine): Refactor device dfx Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 将dfx 内存分配从device_runner 中拆分出来 See merge request: cann/pypto!5077 | 4 months ago | |
feat(machine): Refactor device dfx Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5077 merge refactor-device-dfx into master feat(machine): Refactor device dfx Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 将dfx 内存分配从device_runner 中拆分出来 See merge request: cann/pypto!5077 | 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): 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(Machine): Add aicpu exception dump Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !4874 merge br_exceptionDump into master feat(Machine): Add aicpu exception dump Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 添加aicpu exception dump See merge request: cann/pypto!4874 | 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 | |
feat(machine): Refactor device dfx Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5077 merge refactor-device-dfx into master feat(machine): Refactor device dfx Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 将dfx 内存分配从device_runner 中拆分出来 See merge request: cann/pypto!5077 | 4 months ago | |
feat(machine): Refactor device dfx Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5077 merge refactor-device-dfx into master feat(machine): Refactor device dfx Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 将dfx 内存分配从device_runner 中拆分出来 See merge request: cann/pypto!5077 | 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): 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 | |
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 | |
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 |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 5 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 5 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 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 |