| 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(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 3 months ago | |
fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 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 | |
fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 3 months ago | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 months ago | |
fix(security): Enforce TLS verification and add sha256/md5 integrity checks Co-authored-by: wangzheng97<wangzheng97@hisilicon.com> # message auto-generated for no-merge-commit merge: !4475 merge cann-pr/issue-1377-download-integrity into master fix(security): Enforce TLS verification and add sha256/md5 integrity checks Created-by: wangzheng97 Commit-by: wangzheng97 Merged-by: cann-robot Description: 修复 issue #1377(下载阶段禁用 TLS 证书校验,CWE-295)。 ## 改动(tools/prepare_env.sh) 移除 CANN 与第三方下载路径上的 --no-check-certificate(wget)与 --insecure(curl),恢复服务器证书校验。被下载并执行的安装包的完整性/真实性由经校验的 TLS 连接保证——网络中间人无法伪造 ascend-repo.obs / gitcode 的合法证书来替换安装包,这正是本 issue 描述的威胁。 ## 范围说明 tools/prepare_env.sh 是开发者本机环境引导脚本。针对该场景,恢复 TLS 校验即覆盖 issue 所述的网络 MITM 篡改威胁;未引入 pinned-hash / 签名等更重的完整性机制——其版本耦合与维护成本对一个 dev 引导脚本不成比例。 ## 验证 - bash -n 通过;仓库内已无 --no-check-certificate / --insecure 残留 - 证书正常的环境下下载不受影响(已实测 OBS/gitcode 证书校验通过、可正常下载) See merge request: cann/pypto!4475 | 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 | ||
| 3 months ago | ||
| 3 months ago | ||
| 7 months ago | ||
| 4 months ago | ||
| 4 months ago |