| Files | Last commit | Last update |
|---|---|---|
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
fix(bundle): Load libtile_fwk_runtime.so without embedding RPATH Co-authored-by: dty_30041779<daitianyi1@h-partners.com> # message auto-generated for no-merge-commit merge: !5473 merge feat-bundle-rpath-origin into master fix(bundle): Load libtile_fwk_runtime.so without embedding RPATH Created-by: W4termy Commit-by: dty_30041779 Merged-by: cann-robot Description: 离线单算子复现会按绝对路径 dlopen libtile_fwk_bundle.so,且不 import pypto。 生产构建开启 CMAKE_SKIP_RPATH 后,动态链接器不会到该 .so 的同目录去解析 DT_NEEDED, 于是出现: OSError: libtile_fwk_runtime.so: cannot open shared object file 在 ELF 里写入 -Wl,-rpath,$ORIGIN 能绕过这个问题,但会违反生产包不带 DT_RPATH 的安全编译要求。 参考python/pypto/_loader.py的实现将方案修改成在 CDLL(bundle.so) 之前,用绝对路径 + RTLD_GLOBAL 预加载同目录依赖,让已映射的 SONAME 满足 DT_NEEDED。CANN 的 libruntime.so 仍走set_env.sh / ASCEND_HOME_PATH,不受影响。 See merge request: cann/pypto!5473 | 3 months ago | |
feat(pypto_pro): AICERR exception dump Co-authored-by: liulufang_gitcode<liulufang1@hisilicon.com> # message auto-generated for no-merge-commit merge: !5435 merge master into master feat(pypto_pro): AICERR exception dump Created-by: liulufang_gitcode Commit-by: liulufang_gitcode Merged-by: cann-robot Description: 本 PR 为 PyPTO Pro 增加 AICORE 异常(AICERR)的异常 dump 能力:通过编译并加载一段内嵌 C++ 代码,向 CANN 注册 ExceptionDumpCallback,在 kernel 启动前缓存张量信息,并在 synchronize() 触发异常时填充 ExceptionDumpInfo,从而支持 CANN 原生 dump 机制。同时补充了触发 AICORE 错误的单测以及一个离线复现工具,用于从异常 dump 数据生成并执行单算子复现脚本。 主要改动 新增异常 dump 回调管理模块 exception_dump.py:内嵌 C++ 源码并在运行时用 g++ 编译为缓存 .so,通过 register_callback() 调用 AdumpRegExceptionDumpCallback 注册回调,set_dump_info() 在启动前缓存 kernel 名与张量信息,clear_dump_info() 清空缓存,并内置 _PL_DTYPE_TO_ACL_DTYPE 完成 PL 类型到 ACL 类型的映射。 新增 C++ 回调实现 exception_dump_callback.cpp:实现 ProExceptionDumpCallback,将缓存的张量信息(类型、大小、数据类型、地址、shape 等)填入 ExceptionDumpInfo,并通过 pro_register_exception_dump_callback、pro_set_dump_info、pro_clear_dump_info 暴露给 Python。 改造 kernel 启动流程 jit.py:为 CompiledKernel 增加 kernel_name 字段,_load_lib 与 _launch 透传 kernel_name,并在 call_kernel 前调用 set_dump_info(kernel_name, args, param_specs) 缓存本次启动的 tensor 信息。 新增 AICORE 错误触发测试 test_aicore_error.py:通过 store_tile 越界写入触发硬件异常,验证 torch.npu.synchronize() 抛出异常,用于验证 dump 机制在 PyPTO Pro 下的可用性。 新增离线复现工具 debug_aicore_error_pro_repro.py:解析异常 dump 目录中的 tensor 元数据与二进制数据,定位 call_kernel.so,生成并执行单算子复现脚本,输出复现报告。 See merge request: cann/pypto!5435 | 3 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago |