| Files | Last commit | Last update |
|---|---|---|
test(ds_v32): Remove dead UT files without test cases Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6894 merge master into master test(ds_v32): Remove dead UT files without test cases Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6894 | 1 month ago | |
fix(machine) :Fix some issue of runtime worskpace Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !7433 merge duanhaotian1 into master fix(machine) :Fix some issue of runtime worskpace Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: 修复内存相关问题: 1.修复文档表述,当前构造每次JIT入参无变化不触发重编译的场景,配置不生效,默认使用首次配置。提示用户相关场景限制 2.auto_mix场景中实际执行无workspace申请时,提示用户无需精细化控制内存进行内存控制 3.在打开token后,tensor即是incast又是outcast的场景中,对于同一个rawtensor无需打上内存复用标签 4.get_runtime_option实验接口不返回所有runtime_option,只返回实际注册的 See merge request: cann/pypto!7433 | 19 days ago | |
refactor(pass): Simplify auto mix partition to on/off switch and enable by default Co-authored-by: bytecode<dubingjia1@huawei.com> # message auto-generated for no-merge-commit merge: !7411 merge auto-mix-partition-switch into master refactor(pass): Simplify auto mix partition to on/off switch and enable by default Created-by: bytecode Commit-by: bytecode Merged-by: cann-robot Description: #3796 ## 问题 ReduceCopyMerge::MapAutoMixPartitionToLimits 仍按多档位(2=default、3~100 回退、>100 自定义总 op 数)解释 auto_mix_partition,与 Python API/schema 已收敛的 0/1 开关语义不一致,且 tile_fwk_config.json 默认 0 导致自动 CV Mix 合图默认关闭。 ## 修复 - MapAutoMixPartitionToLimits:删除档位映射,恢复 autoMixPartition != 0 开关语义,上限固定 kMaxSubgraphAICOpNum=2000/kMaxSubgraphAIVOpNum=2240 - MergeInput::maxSubgraphTotalOpNum:删除自定义档总 op 数字段,CheckLatencyConstraint/WarnIfEnforceOpNumExceeds 移除总 op 数检查与单侧 >0 哨兵 - tile_fwk_config.json/tile_fwk_config_schema.json:auto_mix_partition 默认值 0→1,未配置时默认开启自动 CV Mix 合图 - auto_mix_partition() docstring 与 precision-pass SKILL.md 同步默认开启表述 - 删除档位专属 UT(映射/总 op 限/default 档/回退/自定义/零哨兵),保留 0/1 端到端用例并更名 RunOnFunction_AutoMixEnabledMerges ## 涉及文件 - reduce_copy.cpp/reduce_copy.h:删除档位映射与总 op 数检查 - test_reduce_copy.cpp:删除 6 个档位用例,保留 0/1 用例 - tile_fwk_config.json/tile_fwk_config_schema.json:默认值开 1 - pass_config.py/SKILL.md:默认值文档同步 See merge request: cann/pypto!7411 | 20 days ago | |
feat(ir): Dump memeryId for logical tensor. Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !7426 merge dump_memeryId into master feat(ir): Dump memeryId for logical tensor. Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ir dump/load时,增加对logical tensor的memeryId的打印。 memeryId初始值等于rawmagic,当memeryId和rawmagic不相等才dump。 See merge request: cann/pypto!7426 | 22 days ago | |
fix(kirin9050): Align matmul padding and document A-transpose limitation Co-authored-by: m0_71310678<lizhexun2@huawei.com> # message auto-generated for no-merge-commit merge: !7288 merge kirin9050-matmul-fix1030 into master fix(kirin9050): Align matmul padding and document A-transpose limitation Created-by: m0_71310678 Commit-by: m0_71310678 Merged-by: cann-robot Description: fix(kirin9050): Align matmul padding and document A-transpose limitation The 9050 macro matmul path keeps A and C in L1, while the 9030/X90 path uses L0A/L0C. The L0A/L0C-oriented padding rules produced 16x32 A/B/C tiles on 9050: the B tile failed the pto-isa L0B row-divisibility check, and C was stored with the int8 32-column stride instead of the int32 16-column stride. Changes: - Pad L1 matmul A/B/C with the dtype-specific value and restrict the C accumulator rule to kirin9050 - Expect TMatmul for kirin9050 M==1 cases and drop unsupported fp16->s32 quant cases - Document that kirin9050 does not support a_trans and requires a manual transpose See merge request: cann/pypto!7288 | 27 days ago | |
fix(operation): Intercepting invalid scalar types for Rightshift, Leftshift and Gcd in python op Co-authored-by: 杨志邈<yangzhimiao@huawei.com> # message auto-generated for no-merge-commit merge: !7417 merge master into master fix(operation): Intercepting invalid scalar types for Rightshift, Leftshift and Gcd in python op Created-by: yangzhimiao Commit-by: 杨志邈 Merged-by: cann-robot Description: python测也需要拦截非整形的输入,以免从python impl的类型转换掩盖问题 关联issue:[#3799](https://gitcode.com/cann/pypto/issues/3799) See merge request: cann/pypto!7417 | 23 days 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 | |
feat(pypto-pro): Introduce PGOVFRunOnProgram pass Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7474 merge master into master feat(pypto-pro): Introduce PGOVFRunOnProgram pass Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Introduce PGOVFRunOnProgram pass See merge request: cann/pypto!7474 | 18 days ago | |
fix(tests): Delete unused simulator add test case Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5957 merge delete_ut into master fix(tests): Delete unused simulator add test case Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除无用ut See merge request: cann/pypto!5957 | 2 months ago | |
fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6886 merge prototype/infer-shape-annotation-3525 into master fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Fixes #3525. Two more things were wrong on that path than the report names: - A String value that parses as JSON reached infer_shape as the wrong type: layout="123" arrived as int 123, with no error. - The generated InferShapeGeImpl took no shape attribute but Int / ListInt, so an op fixed on the run path still failed the op-package build. Float, the fourth declarable AttrSpec kind, was refused there too. ## Why only a source string is resolved get_type_hints is not a no-op on an evaluated annotation: it answers from a callable object's **class** namespace, and below Python 3.11 it wraps a None-defaulted parameter in Optional, which the conversion does not recognise. Resolving unconditionally therefore breaks two cases that work today, one of them silently. So it is gated on isinstance(p.annotation, str), and the hints come from the object inspect.signature read. ## Changes 11 files, +447 / -21. Two production files: - common/compile.py — resolve a source annotation, convert a float attr against its declared type, and give every conversion the one actionable message, which now names the annotation. - deploy/codegen.py — accept str and float as shape attributes: InferShapeGeImpl reads them with GetStr / GetFloat into a std::string / float for the pybind wrapper that calls the author's infer_shape. All four AttrSpec kinds now reach it. Same issue as !6851; this adds the two cases that hunk regresses, the deploy half, and tests that separate the three trees. ## Verification of the original published revision 42 cases on 4 interpreters, 3.9 to 3.13: **0 lost**, 6 fixed on each and a 7th from 3.11 up. Both UT suites pass with nothing lost by name, 557 to 578. The new assertions fail 4 on the unpatched package and 6 on !6851's hunk; the emitted InferShapeGeImpl and its wrapper are pinned whole by goldens, which cannot even be built on the base tree. On a 910B3 box with CANN 9.2.0, from a fresh build_ci.py install: an op whose output width is picked by a String attribute builds its .so, reaches ATC run success, and GE records output 0: shape:[1,8,1,32] for a [1,8,1,64] input — the attribute's answer, not the C++ default. The same artifact on the base tools/ tree fails at codegen.py:828. ## Current publication update Corrects stale supported-attribute descriptions and emits compilable integral Float defaults such as 1.0f. Single commit in this update: - a2e8c48e7f4c — fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr This is a history-only squash of the previously published head a18ca0198b5f. The final source tree and the PR's own aggregate diff are unchanged; no dependency changes are included. The exact outgoing source tree passed 145 focused host cases, with zero failures or skips. The squashed commit has the same final source tree as the tested revision; these results are reused by exact tree identity, not reported as a fresh test run. Applicable configured local checks passed. The agent-backed log hook was skipped; the retained manual log review is unchanged. The wider local scanner is not a server CodeCheck result. Combined wave-0 nested and String/Float ATC receipts passed on the recorded CANN 9.3.0 snapshot with core 00b22b75…. That core predates the current target. These receipts do not establish current-target compiled-core or merge qualification. Required server CI/CodeCheck and current-target integration remain merge gates. The actual generated Float declaration also passed all seven compiler probes, including the integral default. Related Issues: [#3525](https://gitcode.com/cann/pypto/issues/3525) See merge request: cann/pypto!6886 | 1 month ago | |
fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6886 merge prototype/infer-shape-annotation-3525 into master fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: Fixes #3525. Two more things were wrong on that path than the report names: - A String value that parses as JSON reached infer_shape as the wrong type: layout="123" arrived as int 123, with no error. - The generated InferShapeGeImpl took no shape attribute but Int / ListInt, so an op fixed on the run path still failed the op-package build. Float, the fourth declarable AttrSpec kind, was refused there too. ## Why only a source string is resolved get_type_hints is not a no-op on an evaluated annotation: it answers from a callable object's **class** namespace, and below Python 3.11 it wraps a None-defaulted parameter in Optional, which the conversion does not recognise. Resolving unconditionally therefore breaks two cases that work today, one of them silently. So it is gated on isinstance(p.annotation, str), and the hints come from the object inspect.signature read. ## Changes 11 files, +447 / -21. Two production files: - common/compile.py — resolve a source annotation, convert a float attr against its declared type, and give every conversion the one actionable message, which now names the annotation. - deploy/codegen.py — accept str and float as shape attributes: InferShapeGeImpl reads them with GetStr / GetFloat into a std::string / float for the pybind wrapper that calls the author's infer_shape. All four AttrSpec kinds now reach it. Same issue as !6851; this adds the two cases that hunk regresses, the deploy half, and tests that separate the three trees. ## Verification of the original published revision 42 cases on 4 interpreters, 3.9 to 3.13: **0 lost**, 6 fixed on each and a 7th from 3.11 up. Both UT suites pass with nothing lost by name, 557 to 578. The new assertions fail 4 on the unpatched package and 6 on !6851's hunk; the emitted InferShapeGeImpl and its wrapper are pinned whole by goldens, which cannot even be built on the base tree. On a 910B3 box with CANN 9.2.0, from a fresh build_ci.py install: an op whose output width is picked by a String attribute builds its .so, reaches ATC run success, and GE records output 0: shape:[1,8,1,32] for a [1,8,1,64] input — the attribute's answer, not the C++ default. The same artifact on the base tools/ tree fails at codegen.py:828. ## Current publication update Corrects stale supported-attribute descriptions and emits compilable integral Float defaults such as 1.0f. Single commit in this update: - a2e8c48e7f4c — fix(exported_custom_op): Resolve postponed infer_shape annotations and accept String and Float shape attr This is a history-only squash of the previously published head a18ca0198b5f. The final source tree and the PR's own aggregate diff are unchanged; no dependency changes are included. The exact outgoing source tree passed 145 focused host cases, with zero failures or skips. The squashed commit has the same final source tree as the tested revision; these results are reused by exact tree identity, not reported as a fresh test run. Applicable configured local checks passed. The agent-backed log hook was skipped; the retained manual log review is unchanged. The wider local scanner is not a server CodeCheck result. Combined wave-0 nested and String/Float ATC receipts passed on the recorded CANN 9.3.0 snapshot with core 00b22b75…. That core predates the current target. These receipts do not establish current-target compiled-core or merge qualification. Required server CI/CodeCheck and current-target integration remain merge gates. The actual generated Float declaration also passed all seven compiler probes, including the integral default. Related Issues: [#3525](https://gitcode.com/cann/pypto/issues/3525) See merge request: cann/pypto!6886 | 1 month 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 |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 19 days ago | ||
| 20 days ago | ||
| 22 days ago | ||
| 27 days ago | ||
| 23 days ago | ||
| 4 months ago | ||
| 18 days ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 3 months ago |