| feat(skill): Add pypto-convbp-op-dev skill for A2/A3 conv backward dx/dw operator development Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !7000 merge master into master feat(skill): Add pypto-convbp-op-dev skill for A2/A3 conv backward dx/dw operator development Created-by: zhouxuan78 Commit-by: zhouxuan78 Merged-by: cann-robot Description: pypto-convbp-op-dev —— PyPTO 框架上 A2/A3(DAV_2201)平台卷积反向算子(dx 输入梯度 / dw 权重梯度)的全栈开发 skill。 它将算子开发拆解为 10 个强制顺序阶段(现状盘点 → 设计确认 → TileShape 体系 → Opcode 注册 → TileOp 实现 → Operation 展开 → NPU Codegen → Python/bindings → UT/ST 测试 → 文档收尾),并配套 7 份设计参考:MKN 矩阵乘分解与 dx/dw 差异对照、全量文件变更地图(唯一命名来源)、各自的循环结构与区间反算设计、pto-isa 编写模式、约束与容量公式速查、golden 对拍与测试指南。内置检查脚本可确定性盘点目标仓中算子各模块的存在状态,支持全新/增量两种开发路径。 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!7000 | 1 month ago |
| feat(config): Add issue template for experience Co-authored-by: songle1<songle1@huawei.com> # message auto-generated for no-merge-commit merge: !6810 merge dev_1006 into master feat(config): Add issue template for experience Created-by: songle1 Commit-by: songle1 Merged-by: cann-robot Description: 添加新的issue模板,针对用户体验问题,覆盖多个不同的旅程和组件。 为不同的旅程和组件提供简要的统一模板描述,便于问题分类和跟踪。 体验活动所处阶段提供5个类别; 体验改进触点提供5个类别。 See merge request: cann/pypto!6810 | 1 month ago |
| fix(agent): Use "opened" PR state in code-merge-agent Co-authored-by: xiaoyueyueyueyue<liuxiaoxiao11@huawei.com> # message auto-generated for no-merge-commit merge: !5916 merge fix/agent-use-opened-state into master fix(agent): Use "opened" PR state in code-merge-agent Created-by: xiaoyueyueyueyue Commit-by: xiaoyueyueyueyue Merged-by: cann-robot Description: GitCode/GitLab uses "opened" as the open PR state; "open" would never match. Changes: - Minimal one-spot fix. Validation: - No Issue linked. See merge request: cann/pypto!5916 | 2 months ago |
| feat(pass): Enable VF fusion for ROWSUMLINE op Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !6860 merge feat/vf-fuse-rowsumline into master feat(pass): Enable VF fusion for ROWSUMLINE op Created-by: Catherie Commit-by: Catherie Merged-by: cann-robot Description: feat(pass): Enable VF fusion for ROWSUMLINE op ROWSUMLINE 是与 ROWSUM_SINGLE / ROWMAX_SINGLE / ROWMIN_SINGLE / ROWPROD_SINGLE 同类的 AIV 行规约算子,后四者已在 SUPPORT_VF_FUSE_OPS 中,放开后 ROWSUMLINE 即可加入 VF 融合 loop 组。 VF 融合的 loop body 每次迭代只处理各 operand 的最后 2 维切片,因此 ROWSUMLINE 仅当 reduce 轴落在最后 2 维内时可融合;若 reduce 轴位于 leading 维,规约需要跨迭代累加,融合后结果是错的。对可融合情形,现有 TRowSumLine tile 模板天然兼容 2 维 loop 张量(axis 归一化到 5 维坐标系下恒为 3),无需修改模板。 变更内容: - SUPPORT_VF_FUSE_OPS 中增加 Opcode::OP_ROWSUMLINE,使 ROWSUMLINE 可编入 VF 融合 loop 组 - 注册 loop body tensor 时跳过 ROWSUMLINE 复用的 tmp buffer(ID1),与 _SINGLE 系列 reduce 算子保持一致 - LoopaxesProc 中按 reduce 轴做编组门控:携带 reduce AXIS 属性的算子,仅当轴落在输入 tensor 最后 2 维内时才允许加入 VF 组,否则断组走原有全维生成路径 ## 附带修复:ASan UTest 退出阶段崩溃 ### 问题描述 现象:ASan UT(Cpp-Clang-1x/2x/3x)所有用例 [ PASSED ],但每个进程在退出阶段崩溃,CI 失败: text Tracer caught signal 11: addr=0x43xxx ==xxxx==LeakSanitizer has encountered a fatal error. → 进程退出码 1 根因链(CANN 库 × 进程退出时序): text 每个 UT 进程 ├─ 静态初始化:两条路径 dlopen CANN 库 │ ① REGISTER_BACKEND_OP → BackendCCE → CreateSoC → CannRuntime → libruntime.so │ ② platform 查询 → CannHostRuntime → libprofapi/libruntime/libascendcl │ └─ 退出(glibc atexit 按注册逆序执行): ① TU 静态析构 + _dl_fini(运行所有已加载 .so 的析构,含 CANN 库) ← 先执行 ② LeakSanitizer 退出检查(ASan preinit 期注册,最后执行) ← 后执行 └─ CANN 库在退出链遗留的失效状态(线程/TLS)→ tracer SIGSEGV 触发源为 CI 环境 nightly CANN 包内容变化。无 NPU 构建机上 SoC 查询本就恒定失败并回退默认值,这两条加载路径在 UT 中属无收益的风险源。 ### 修改逻辑 思路:UTest 构建下双端均不加载 CANN 运行时(编译期裁剪),非 UTest 构建行为不变。 | 提交 | 文件 | 改动 | 作用 | |---|---|---|---| | edde29027 | cann_runtime.cpp | 构造函数加载逻辑包进 #ifdef BUILD_WITH_CANN | 堵路径①:tile_fwk_interface 在 UTest 构建本就不定义该宏(interface/CMakeLists.txt 既有设计),原代码未判断宏、无条件 dlopen,补上判断即编译期裁剪 | | 8e18b71b1 | cann_host_runtime/CMakeLists.txt | BUILD_WITH_CANN 定义加 NOT ENABLE_UTEST 条件 | 堵路径②:源码本有 #ifdef BUILD_WITH_CANN,但该目标无条件定义宏,UT 构建仍会加载;对齐 adapter 既有门控模式 | | 27a8ae3c8 | executable.py | 枚举失败时打印被捕获的子进程 stdout/stderr | 纯诊断:此前 check=True 子进程失败时输出被吞,CI 日志看不到真实报错 | 为什么两条都要堵:只堵单边会被另一条路径复活——此前仅门控 CannRuntime 的版本,1x/2x/3x 仍复现退出崩溃(CannHostRuntime 路径存活)。 行为影响:UTest 构建 = 不加载 + 走默认规格(与无 NPU 构建机现状等价);非 UTest 且 BUILD_WITH_CANN=ON = 加载照旧;BUILD_WITH_CANN=OFF = 原先也是加载失败回退默认值,仅少两条告警。 ## 验证 pypto-gym mhc_sinkhorn / mhc_pre 全部用例通过(同时覆盖可融合的 row_sum 与不可融合的 col_sum 场景,含 bs8/bs64/bs128/bs1024 的 golden 精度对比),pypto ST 用例回归通过。 Related Issues: cann/pypto#3550 See merge request: cann/pypto!6860 | 1 month ago |
| feat(operation): ScatterUpdate Tile Last Dim Co-authored-by: Creeeeper<liuyizhe6@huawei.com> # message auto-generated for no-merge-commit merge: !6967 merge su into master feat(operation): ScatterUpdate Tile Last Dim Created-by: Creeeeper Commit-by: Creeeeper Merged-by: cann-robot Description: ## 描述 ScatterUpdate算子尾轴可进行tileshape切分。 A5新增支持数据类型fp8e4m3。 ## 测试 完成 A3 A5 冒烟测试 ## 关联Issue [#3592](https://gitcode.com/cann/pypto/issues/3592) ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!6967 | 1 month ago |
| Fix basic operations CLI commands in the examples guides Co-authored-by: KaranocaVe<karanocave@qq.com> # message auto-generated for no-merge-commit merge: !6719 merge fix/2026-09-24-pypto-basic-ops-cli-doc-01 into master Fix basic operations CLI commands in the examples guides Created-by: KaranocaVe Commit-by: KaranocaVe Merged-by: cann-robot Description: # Fix basic operations CLI commands in the examples guides The top-level Chinese and English examples guides currently show two commands that examples/01_beginner/basic/basic_ops.py does not accept: text python3 examples/01_beginner/basic/basic_ops.py matmul::test_matmul python3 examples/01_beginner/basic/basic_ops.py --list The script accepts --tests/-t with matmul as one of its choices, and uses --help to display the available choices. This change updates both guides to use: text python3 examples/01_beginner/basic/basic_ops.py --tests matmul python3 examples/01_beginner/basic/basic_ops.py --help The change is documentation-only. At commit 289942aa3e0c0c0bc9e054c72bafb199200e392f, argparse accepts the corrected selector and rejects the two documented commands with exit code 2. The corrected commands were checked against the script's help output and parser controls. ## Files - examples/README.md - examples/README_en.md 关联 Issue: https://gitcode.com/cann/pypto/issues/3452 See merge request: cann/pypto!6719 | 1 month ago |
| fix(function): The target COA is reused based on atomic write and in-place attribute. | 1 month ago |
| feat(operation): ScatterUpdate Tile Last Dim Co-authored-by: Creeeeper<liuyizhe6@huawei.com> # message auto-generated for no-merge-commit merge: !6967 merge su into master feat(operation): ScatterUpdate Tile Last Dim Created-by: Creeeeper Commit-by: Creeeeper Merged-by: cann-robot Description: ## 描述 ScatterUpdate算子尾轴可进行tileshape切分。 A5新增支持数据类型fp8e4m3。 ## 测试 完成 A3 A5 冒烟测试 ## 关联Issue [#3592](https://gitcode.com/cann/pypto/issues/3592) ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!6967 | 1 month ago |
| perf(pre-commit): Speed up the log spec check hook Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !6862 merge log_test into master perf(pre-commit): Speed up the log spec check hook Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 本地pre-commit中的日志规范性检查,修改为单次 agent 调用; 新增行无日志特征时直接跳过; 进度改为分步进行; 精简 skill(删除出处、重复说明与"依据条款"列,不影响判定)。 See merge request: cann/pypto!6862 | 1 month ago |
| fix(interpreter): Fix debug of pass verify dump tensor Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6965 merge master into master fix(interpreter): Fix debug of pass verify dump tensor Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. copyOpCode加入conv的搬运类op,dump tensor计算offset时能正确匹配分支 2. pass间精度离线对比脚本,遗漏了loopinfo是空的对比 See merge request: cann/pypto!6965 | 1 month ago |
| style(config): Update .clang-format and .pre-commit-config.yaml rules Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4877 merge style-config-ci into master style(config): Update .clang-format and .pre-commit-config.yaml rules Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Update .clang-format and .pre-commit-config.yaml rules See merge request: cann/pypto!4877 | 4 months ago |
| fix(docs): Add the index files Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !5184 merge master into master fix(docs): Add the index files Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、将pypto.isnan、pypto.pack、pypto.unpack接口文档写入目录文件index_hiascend.md 2、pypto.isnan、pypto.pack、pypto.unpack接口支持910DT,增加相关描述,并补充芯片标签。 3、删除目录中不存在的内容引用:pypto-copysign 4、图片lfs跟踪文件统一到仓库根目录下 Related Issue: [#2814](https://gitcode.com/cann/pypto/issues/2814) See merge request: cann/pypto!5184 | 3 months ago |
| style(config): Update .clang-format and .pre-commit-config.yaml rules Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4877 merge style-config-ci into master style(config): Update .clang-format and .pre-commit-config.yaml rules Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Update .clang-format and .pre-commit-config.yaml rules See merge request: cann/pypto!4877 | 4 months ago |
| feat(pre-commit): Add the log spec check hook Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !6751 merge log_check_skill into master feat(pre-commit): Add the log spec check hook Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 新增一个本地 pre-commit 项,通过本地 agent CLI 调用 pypto-log-check skill,检查本次提交新增的日志语句。 仅扫描 framework/include、framework/src、python/pypto、python/pypto_pro 和 python/src 五个目录。 命中致命或严重级别问题会阻断提交;未安装受支持的 agent CLI 时自动跳过检查。 See merge request: cann/pypto!6751 | 1 month ago |
| docs(feat): Add pypto-doc-reviewer Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6895 merge master into master docs(feat): Add pypto-doc-reviewer Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 新增文档质检skill,用于文档自检和PR审核 See merge request: cann/pypto!6895 | 1 month ago |
| feat(Machine): Add FedProf and AicpuProf for machine profiling Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !6980 merge pgo-framework into master feat(Machine): Add FedProf and AicpuProf for machine profiling Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(Machine): Add FedProf and AicpuProf for machine profiling Rework the machine-side profiling data path around a unified host profiler (FedProf). The old free-function dump machinery is replaced by a class-owned design; profiling buffers are allocated once at device init and addressed directly through DeviceArgs, so device cores no longer rely on the sharedBuffer slot to locate their per-core prof data. Changes: - Add the FedProf singleton: owns per-core prof buffers, the AICPU launch-round prof buffer, the dump thread and JSON dumping; split into fed_prof.{h,cpp}, fed_prof_aicpu_prof.cpp and fed_prof_io_json.{h,cpp}; remove dump_device_perf.* and runtime/runner/device_perf.* - Add DeviceArgs::perCoreProfAddr / aicpuProfAddr; per-core prof slots are addressed as perCoreProfAddr + idx * FED_PROF_PER_CORE_PROF_ALIGNED_SIZE, and aicore entry/dfx/drco, the AICPU task manager, AICoreHAL and the ESL model are updated accordingly; SHAK_BUF_PER_CORE_PROF_INDEX is removed - Allocate per-core prof data as a single contiguous 512B-aligned block at device init (DeviceDfx::Init -> FedProf::PerCoreProfAllocateData), gated by DUMP_DEVICE_PERF / HostProf / runtime debug mode, idempotent and released together with the AICPU prof buffer - Add AICPU launch-round profiling (FedProfAicpuProf): dump thread, swimlane JSON and machine_perf_trace.py integration, output via KEY_AICPU_PERF_GRAPH_PATH - Reorganize device headers: add aikernel_profile.h (prof structures and sizes) and aikernel_launch.h (KernelArgs/KernelSharedBuffer/TaskEntry/ParallelDevTask moved out of aicpu_common.h); rename aicpu_perf.h to aikernel_profile_aicpu.h and update the CMake install list - Update UT/ST cases, the ESL model hook and launcher call sites to the new interfaces Commits: - feat(Machine): Add FedProf as the profiler - feat(Machine): Add AicpuProf for profiling - feat(Machine): Normalize AicpuProf - feat(Machine): Normalize profiling allocation See merge request: cann/pypto!6980 | 1 month 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 |
| Initial commit | 11 months ago |
| 修复dump 数据bug Co-authored-by: s00454010<suntao37@huawei.com> # message auto-generated for no-merge-commit merge: !5436 merge bug/dumpdata into master 修复dump 数据bug Created-by: u010986451 Commit-by: s00454010 Merged-by: cann-robot Description: 修复dump 数据bug See merge request: cann/pypto!5436 | 3 months ago |
| feat(interface): Support getinputdata for all integral types Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2224 merge refactor/deadcode into master feat(interface): Support getinputdata for all integral types Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: 1. startArgsSymbolHandlerList of devProg does not used any more 2. Support getinputdata for all integral types Related Issue: [#408](https://gitcode.com/cann/pypto/issues/408) See merge request: cann/pypto!2224 | 7 months ago |
| fix(docs): Add the zh/en link of README Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6255 merge master into master fix(docs): Add the zh/en link of README Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1. 文档国际化要求,需要在README文件中增加中英文文件跳转链接 2. 部分文档低错修改,如AICore>AI Core See merge request: cann/pypto!6255 | 2 months ago |
| fix(docs): Add the zh/en link of README Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !6255 merge master into master fix(docs): Add the zh/en link of README Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1. 文档国际化要求,需要在README文件中增加中英文文件跳转链接 2. 部分文档低错修改,如AICore>AI Core See merge request: cann/pypto!6255 | 2 months ago |
| fix(docs): Precision tools do not have a recompilation scenario Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !4153 merge master into master fix(docs): Precision tools do not have a recompilation scenario Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、仓库文档国际化,新增英文readme文件,skill和docs暂不翻译 2、精度工具文档陈旧内容修改:1)删除精度工具重编译步骤 2)更新msaccucmp.py执行命令,明确执行路径、不带版本信息,便于用户在不同版本通用执行 3、webide安装方式的安装界面截图变更 Related Issue: #2345 See merge request: cann/pypto!4153 | 5 months ago |
| fix(docs): Precision tools do not have a recompilation scenario Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !4153 merge master into master fix(docs): Precision tools do not have a recompilation scenario Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: 1、仓库文档国际化,新增英文readme文件,skill和docs暂不翻译 2、精度工具文档陈旧内容修改:1)删除精度工具重编译步骤 2)更新msaccucmp.py执行命令,明确执行路径、不带版本信息,便于用户在不同版本通用执行 3、webide安装方式的安装界面截图变更 Related Issue: #2345 See merge request: cann/pypto!4153 | 5 months ago |
| fix(interpreter): Fix tile_fwk_calculator compiler error in g++ 13.3.0 Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !1453 merge interpreter into master fix(interpreter): Fix tile_fwk_calculator compiler error in g++ 13.3.0 Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: Fix tile_fwk_calculator compiler error in g++ 13.3.0 See merge request: cann/pypto!1453 | 8 months ago |
| feat(gcov): Support gcov of python scene Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !3250 merge master into master feat(gcov): Support gcov of python scene Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: 为 Python 前端用例增加 gcov 覆盖率统计能力。 主要修改: - 新增 gen_coverage_config.py 在 CMake POST_BUILD 阶段生成覆盖率配置 - setup.py 写入 build_dir 标记文件供 build_ci.py 定位配置文件 - build_ci.py 新增 py_generate_coverage 函数生成覆盖率报告 - 修复 CMake VERBATIM 问题,处理生成器表达式展开后的分号分隔路径(同时修复 C++ 覆盖率场景) See merge request: cann/pypto!3250 | 6 months ago |
| fix(build): Flush gcov data for pytest-forked subprocess coverage Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6148 merge master into master fix(build): Flush gcov data for pytest-forked subprocess coverage Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## 背景 Python UT 通过 --forked(pytest-forked)并行执行用例,子进程以 os._exit() 退出,会跳过 atexit 钩子,导致 gcov 的 __gcov_exit 不被调用、.gcda 覆盖率数据不落盘。因此 --gcov 无法统计到由 Python UT 触发的 C++ 覆盖率(issue #2705)。 ## 解决方案 1. **python/tests/ut/conftest.py**:新增 pytest_runtest_teardown 钩子,当环境变量 PYPTO_GCOV_FLUSH=1 时手动调用 __gcov_dump(),把内存中的计数器写入 .gcda;并补充 duration_estimate 装饰器。 2. **build_ci.py**:--gcov 时注入 PYPTO_GCOV_FLUSH=1。 3. **cmake/intf.cmake**:gcov 模式追加链接选项 -Wl,--export-dynamic,-u,__gcov_dump,--whole-archive,-lgcov,--no-whole-archive。仅加 -u,__gcov_dump 时 _gcov_dump.o 不会被 lgcov.a 拉入,__gcov_dump 保持未定义,ctypes.CDLL(None) 找不到该符号,必须用 --whole-archive 强制拉入。 4. **cmake/scripts/gen_coverage.py**:lcov >= 2.0 时追加 --ignore-errors inconsistent,将 lcov 2.3.1 对 pybind11.cpp 的 mismatched end line 由 ERROR 降级为 WARNING,避免覆盖率生成失败。 5. **tools/scripts/pre_commit_check.sh**: - 修正覆盖率开关(--py_cov → --gcov)、clang 失败退出码、GTEST_FILTER 保存/恢复、覆盖率标签等; - 移除本地增量覆盖率门禁:本地 gen_coverage.py --increment 与 CI 的 get_ai_inc_cov.py(addlcov) 是两套独立实现,增量覆盖率无法保证与 CI 一致,门禁统一由 CI 兜底。 ## 验证 - bash tools/scripts/pre_commit_check.sh --full 全部通过(gnu / clang+ASan / Python / costmodel 仿真,耗时约 4779s)。 - 确认 Python UT 触发场景下 C++ 覆盖率数据(.gcda)可正常落盘并被 --gcov 统计。 Related Issue: #2705 See merge request: cann/pypto!6148 | 2 months ago |
| fix(machine): fix log quality issues in machine module. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5679 merge pyptolog_fix into master fix(machine): fix log quality issues in machine module. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: PyPTO machine 模块日志整改 See merge request: cann/pypto!5679 | 3 months ago |
| fix(function):gcc升级15版本兼容问题修改 Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !5862 merge master into master fix(function):gcc升级15版本兼容问题修改 Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: fix(interface): gcc升级15版本兼容问题修改 Related Issue: #3172 See merge request: cann/pypto!5862 | 2 months ago |
| feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !5599 merge v3_02_compile into master feat(exported_custom_op): Add kernel-source introspection and the runtime compile contract Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. First functional piece of the exported custom-op subsystem: everything downstream needs a way to recover a kernel's source and to compile it under a stable contract. **API surface map for this whole series — every def with its signature, introducing PR and callers:** https://claude.ai/code/artifact/a42e70ca-5cf9-4a67-8eb3-b7d3c8e17f1a Changes: - Add kernel-source introspection for decorated kernel functions: source recovery, annotation-span editing, scope classification, and the authoring helpers that read a DIRECT kernel's declared shape/dtype constants and classify a factory's signature - Define the runtime compile contract: CompileEntry(jit_kernel=… | factory=…, num_inputs=, num_outputs=, factory_signature=), called as entry(shapes, dtypes, attrs, soc_version) -> compiled-kernel path, result cached per key. Construction accepts exactly one kernel form and rejects an unknown factory_signature or a non-positive input/output count; each call requires soc_version and checks the shape/dtype count against num_inputs - infer_shape / infer_dtype are read/write properties, rejecting a non-callable at assignment rather than deep in dispatch; without a hook every output takes the first input's shape and dtype - Enforce author-declared annotations at compile: a pinned dtype that disagrees with the runtime dtype raises, a pinned shape warns - Wire build_kernel through the frontend parser (single-object contract stated in its error), register the package in pyproject.toml - Add the kernel compile samples and the unit tests over the contract, the declared annotations and the warning paths Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158) See merge request: cann/pypto!5599 | 2 months ago |
| fix(test): cleanup log level and test configuration Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5773 merge fixlogbug into master fix(test): cleanup log level and test configuration Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除models目录后,将对应pytest文件中关于models的内容删除 由于framework/src/adapter/manager/cann_adapter.h中空指针不会影响后续执行,改回info级别日志,调整日志信息 See merge request: cann/pypto!5773 | 2 months ago |
| fix(build_ci): auto-derive job_num from CPU count and cgroup memory Co-authored-by: chen_chenn<chenchen167@huawei.com> # message auto-generated for no-merge-commit merge: !5721 merge fix_build_ci_job_num into master fix(build_ci): auto-derive job_num from CPU count and cgroup memory Created-by: chen_chenn Commit-by: chen_chenn Merged-by: cann-robot Description: 修复 1. build_ci默认并发度过高导致高核低内存环境编译OOM 2. [文档] 编译(pip install .)未说明内存/并行度要求,默认并行在 32Gi 内存仍 OOM(exit 137) See merge request: cann/pypto!5721 | 3 months ago |
| fix(all): Fix spelling errors in source comments and diagnostic messages Co-authored-by: wangmingjun<wangmingjun13@huawei.com> # message auto-generated for no-merge-commit merge: !5392 merge fix/spelling-errors-2908 into master fix(all): Fix spelling errors in source comments and diagnostic messages Created-by: hwwangmingjun Commit-by: wangmingjun Merged-by: cann-robot Description: fix(all): Fix spelling errors in source comments and diagnostic messages 修复源码注释、错误信息和调试日志中多处英文拼写错误,避免阅读诊断输出时产生误解。 Changes: - device_error_code.h:defalut -> default - codegen_vector.cpp:occured/unsupport -> occurred/unsupported - operation_impl.cpp:interger -> integer - device_task_context.cpp:Inital -> Initial - directed_graph_util.h:lenght -> length - tune_sync_for_vf.cpp:falied -> failed(4 处) - graph_utils.h / expand_function.cpp:seperate -> separate - cube_process.cpp:invlid -> invalid - pil2ir.py:funtion -> function - test_dynamic_mm.cpp:intput -> input(4 处) Related Issues: #2908 See merge request: cann/pypto!5392 | 3 months ago |