| fix(pypto-pro): Fix tiletype in IR and keep camelCase code style Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !7348 merge vf_fusion into master fix(pypto-pro): Fix tiletype in IR and keep camelCase code style Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: fix(pypto-pro): Fix tiletype in IR and keep camelCase code style See merge request: cann/pypto!7348 | 17 days ago |
| feat(ci): change UT_Test_Py3_ninja_interpreter runner_spec to 2xlarge Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !7041 merge 1020 into master feat(ci): change UT_Test_Py3_ninja_interpreter runner_spec to 2xlarge Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: Change the runner_spec of JOB_UT_Test_Py3_ninja_interpreter in .gitcode/workflows/pypto_action.yml from 'xlarge' to '2xlarge', to improve the UT job execution efficiency and avoid task queuing/timeout caused by insufficient resources. Related Issue: #3610 See merge request: cann/pypto!7041 | 30 days 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 |
| fix(build): Work around LSan DTLS misread crash on glibc >= 2.25 Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !7163 merge 1027 into master fix(build): Work around LSan DTLS misread crash on glibc >= 2.25 Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: fix(build): Work around LSan DTLS misread crash on glibc >= 2.25 LLVM<17 sanitizer runtimes use the glibc 2.19 heuristic to locate dlopen dynamic TLS blocks. On glibc >= 2.25 those blocks are allocated via malloc, so the heuristic misreads the 16 bytes before the block and records an invalid DTLS range; LSan then scans a garbage interval at exit (SIGSEGV). LLVM 17 replaced the heuristic with an allocator metadata lookup ("glibc >=2.25 suspected" branch). Changes: - Append intercept_tls_get_addr=0 to ASAN_OPTIONS only for legacy runtimes: probe the preloaded libasan for GNU, gate on Clang version < 17 - The workaround expires automatically once the sanitizer runtime is upgraded to LLVM 17+ Verified: cmake probe case matrix (GNU old/fixed/missing libasan, Clang 15/16/17) passes; intercept_tls_get_addr=0 proven to fully disable the __tls_get_addr interceptor Related Issues: #3660 See merge request: cann/pypto!7163 | 25 days ago |
| feat(pypto_pro): Upload for ssa Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6854 merge master_st into master feat(pypto_pro): Upload for ssa Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for ssa See merge request: cann/pypto!6854 | 16 days ago |
| docs(install): Add English install docs and restructure install directory Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !7320 merge docs/install-en-translation into master docs(install): Add English install docs and restructure install directory Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: ### 变更说明 新增英文安装文档并重构安装目录结构: - 新增 docs/en/install/ 英文安装文档:index.md、prepare_environment.md、build_and_install.md、examples_invocation.md - 重构中文安装目录:将 prepare_environment.md、examples_invocation.md 移动至 docs/zh/install/,与英文目录结构对齐 - 将产品标签规则合并至开源写作规范(.agents/skills/pypto-doc-reviewer) See merge request: cann/pypto!7320 | 19 days ago |
| feat(pypto_pro): Upload for ssa Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6854 merge master_st into master feat(pypto_pro): Upload for ssa Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for ssa See merge request: cann/pypto!6854 | 16 days ago |
| feat(pypto_pro): Upload for ssa Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6854 merge master_st into master feat(pypto_pro): Upload for ssa Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for ssa See merge request: cann/pypto!6854 | 16 days ago |
| fix(build): Add set -e to run package scripts and flatten nested defaults Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !7313 merge fix/package-shell-warnings into master fix(build): Add set -e to run package scripts and flatten nested defaults Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: fix(build): Add set -e to run package scripts and flatten nested defaults Fix CodeCheck warnings reported for the PyPTO run package scripts: - Five scripts (pypto_custom_uninstall.sh, run_pypto_uninstall.sh, run_pypto_install.sh, pypto_func.sh, pypto_custom_install.sh) missed set -e at the script head. - Variable definitions such as PKG_WHL_INSTALL_PATH="${PKG_WHL_INSTALL_PATH:-${PKG_INSTALL_PATH}/python/site-packages}" nested more than two levels; they are rewritten with explicit empty checks while keeping the original semantics. Since pypto_func.sh is sourced by install.sh / uninstall.sh, enabling set -e makes errexit propagate into the entry scripts. To keep the existing error-handling behavior unchanged, every command whose failure was previously ignored is guarded with || true, including: - best-effort chmod / chown / chattr / find calls and grep misses; - installed/package version.info lookups (is_multi_version_pkg, get_version), so that a missing or corrupted version.info no longer aborts install.sh / uninstall.sh silently before the /etc/ascend_install.info fallback logic; - log initialization, which falls back to /dev/null when the log directory is not writable, so installation/uninstallation keeps running as before; - the first-install path (version.info does not exist yet), the legacy /etc/ascend_install.info uninstall path, and the invalid local statement in _set_mode. Changes: - Add set -e to the five run package scripts - Flatten nested variable defaults in pypto_custom_uninstall.sh and run_pypto_uninstall.sh - Guard benign failures, version.info lookups and log initialization in pypto_func.sh, install.sh, uninstall.sh, run_pypto_uninstall.sh and pypto_custom_uninstall.sh - Reset ARCH_NAME to empty when scene.info lookup fails, to avoid capturing the error log into the variable Validation: - bash -n on all touched scripts and git diff --check passed - A/B comparison against the base commit (eb60d7b58) with real CANN common_func*.inc: 36 scenarios (help/version/check/first install/uninstall/custom scripts, invalid arguments, missing or corrupted version.info, unwritable log directory) behave identically; only the redundant stderr lines from failed log-file writes disappear - Unit checks for the set -e sensitive functions Related Issues: #3757 See merge request: cann/pypto!7313 | 19 days ago |
| fix(api | profiling): Correct profiling usage and API documentation inconsistencies Co-authored-by: Approach1999<2196572507@qq.com> # message auto-generated for no-merge-commit merge: !7205 merge fix/combined-profiling-docs-topk into master fix(api | profiling): Correct profiling usage and API documentation inconsistencies Created-by: Approach1999 Commit-by: Approach1999 Merged-by: cann-robot Description: **说明** 按活动提交要求,将三个独立缺陷修复合并为单个 PR。三个问题的根因相互独立、改动文件互不重叠,可按下列三节分别评审;如需回退,可按对应文件路径单独回退。本 PR 已 squash 为单个提交 b13a247c7。 **提交清单** | 原 PR | 原提交 | 提交标题 | 改动文件 | |---|---|---|---| | !7031 | f337a17a2 | fix(profiling): Correct pipeline usage calculations | tools/profiling/draw_swim_lane.py、tools/tests/test_draw_swim_lane.py | | !7032 | bb3aaf6e4 | docs(api): Correct tensor shapes and outputs in examples | 8 个算子文档页面 | | !7033 | 63a7d59ff | docs(api): Align topk return annotations with list results | topk 文档、python/pypto/op/comparison.py、python/pypto/tensor.py | --- ## 一、泳道图管线利用率计算错误 **场景** 用户为泳道图工具启用可选的管线利用率报告(gen_exe_topo_json),并提供合法的 leaf pipe 执行时间 JSON,进入 calculate_pipe_usage 生成报告。 **问题** TaskInfo.func_name 是字符串字段,消费端却写为 entry.func_name(),只要进入正常任务遍历即抛出 TypeError: 'str' object is not callable,功能完全无法完成。同路径上还存在多处连带缺陷: - 任务未匹配到 leaf 时 leaf_total_cycles == 0,trans_cycles_to_time 中除零崩溃; - 仅存在单一核类型(纯 AIC 或纯 AIV)时,汇总表按对应核数为 0 除法崩溃; - 某核无某 pipe 数据时 pipe_exec_time[pipe] 抛 KeyError; - fake 任务/零时长核破坏 get_total_time 的哨兵值逻辑。 **影响范围** 改动完全收敛在 --gen_exe_topo_json 可选开关下的代码路径,泳道图主流程不受影响;get_total_time / trans_cycles_to_time / calculate_pipe_usage 全仓库无其他调用方,CSV 无外部消费方。 **复现方式** 构造 1 个 AIC 任务(func_name="cube",0→10)与 1 个 AIV 任务(vec,2→10),提供 leaf JSON: json [{"FuncName": "cube", "FuncHash": 1, "TotalCycles": 1800, "pipes": {"CUBE": 900}}] master 上调用 calculate_pipe_usage: text TypeError: 'str' object is not callable 修复后正常产出 CSV(CUBE = 900 cycles / 1800 MHz = 0.5,0.5 ÷ 1 核 ÷ 10 总时长 = 5.0%)。 **改动内容** - func_name = entry.func_name() 改为属性读取 entry.func_name - trans_cycles_to_time / get_total_time / calculate_pipe_usage 跳过 fake 任务并防护零周期、零时长场景 - 每核行的 TotalTime 列与利用率分母改用每核自身总时长 - 所有除法增加零分母防护;pipe 时间改用 .get(pipe, 0) **回归验证** 新增仅依赖标准库的主机侧单测 tools/tests/test_draw_swim_lane.py(5 个用例,全部通过),覆盖 AIC/AIV 混合、单一核类型分母、匹配与未匹配 leaf 名、空数据与零时长、fake 任务不遮挡真实任务。 --- ## 二、8 个 API 示例 Shape 构造错误 **场景** 用户复制 hypot、prelu(1D/2D)、pad、remainder(3 种模式)、relu、lrelu、signbit、unpack 共 8 个算子页面的调用示例来构建计算图。 **问题** pypto.tensor 的首参是 **Shape**,但这些示例传入的是数据列表。对照运行时行为已验证: - 浮点/嵌套数据列表在建图时直接被拒:FeError: ErrCode F00002, ValueError: Invalid value type; - 整型数据列表被静默当作 shape 维度——例如 unpack 示例把 8 个 UINT8 数值传进去,实际构造出 **8 维** Tensor(shape 为 [6, 5, 4, 3, 8, 6, 5, 1]),而页面明确要求一维 [8] 输入。 照抄示例均无法按文档预期运行,属于“描述和软件不一致”的正确性问题。 **影响范围** 仅影响上述 8 个算子文档页面的调用示例与说明,不改变 API 行为或实现;修正后的示例已按文档输入数据完成端到端验证。 **复现方式**(图构建层即可复现,无需上板) python import pypto pypto.tensor([3.0, 5.0], pypto.DT_FP32) # FeError: ErrCode: F00002, ValueError: Invalid value type t = pypto.tensor([6, 5, 4, 3, 8, 6, 5, 1], pypto.DT_UINT8) print(t.shape) # [6, 5, 4, 3, 8, 6, 5, 1] —— 8 维,文档要求一维 [8] **改动内容** - 全部示例改为用文档声明的 Shape 构造:[2]、[1,3]、[1,1,2,2]、[4]/[1]、[2,3]/[3]、[3]、[5]、[8] - TileShape 说明与示例维度对齐(如 1D 用 set_vec_tile_shapes(16),pad 用 (1,1,4,16)),并说明 pypto.tensor 首参为 Shape、运行数据由调用方在执行时绑定 - 补充示例上下文说明;数值结果示例保持不变 **回归验证** 8 个修正后的示例全部在 **Ascend 910(CANN 9.2.0)** 上按文档输入数据端到端执行,输出与各页“结果示例”逐项一致,包括 hypot [5, 13]、remainder 负除数 [-2, -1, 0]、unpack 小端拼包 [0x03040506, 0x01050608]、pad 输出 [1,1,3,3] 填充矩阵等。 --- ## 三、topk 返回类型描述与实现不一致 **场景** 用户按 topk 文档“返回命名元组 (values, indices)”的说明,以 result.values / result.indices 方式访问结果。 **问题** 统一包装层 _from_base(python/pypto/_op_wrapper.py)对 tuple/list 一律通过列表推导式返回普通 list,因此 pypto.topk 实际返回包含两个 Tensor 的**列表**;result.values 抛 AttributeError。文档与注解声明的 Tuple[Tensor, Tensor] 与软件行为不一致。 **影响范围** 影响 pypto.topk / Tensor.topk 的返回类型文档与类型注解;运行时行为不变(改动前后行为零差异),将文档和注解对齐到实际的 List[Tensor],并在 comparison.py 中显式 list(...) 固化契约。 **复现方式**(需在合法建图上下文内) python import pypto with pypto.options(pass_options={"enable_slice": True}): x = pypto.tensor([2, 3], pypto.DT_FP32, "x") with pypto.function("TOPK", x): r = pypto.topk(x, 2, -1, True, pypto.TopKAlgo.MERGE_SORT) type(r) # <class 'list'> r.values # AttributeError: 'list' object has no attribute 'values' values, indices = pypto.topk(x, 2, -1, True) # 序列解包可用 **改动内容** - pypto-topk.md、pypto-Tensor-topk.md、op/comparison.py、tensor.py 四处返回类型统一改为 List[Tensor] - op/comparison.py 的 topk 返回改为显式 return list(pypto_impl.TopK(...)),行为不变,仅固化公开 API 的 list 契约 - 返回值说明改写为“包含两个 Tensor 的列表,依次为 values 和 indices,可通过序列解包获取” - 示例改为 values, indices = pypto.topk(...),输出标签同步更新(y[0]/y[1] → values/indices) **回归验证** - 在 **Ascend 910(CANN 9.2.0)** 实机执行:解包结果 values [[3, 2], [3, 2]]、indices [[2, 1], [2, 1]],与文档示例输出完全一致;Tensor.topk 方法路径同样验证通过 - 注解改动经 13 个算子冒烟差分(op/comparison.py 全部 11 个公开算子 + 控制组)验证与改动前**行为零差异**;pypto 命名空间表面逐项一致 - comparison.py 显式 list(...) 改动后按同一 topk 脚本复核,输出与改动前一致 --- **合并验证** - 基于官方 master 480eef718,单提交 b13a247c7,14 文件、+238/−77 - tools/tests/test_draw_swim_lane.py:5 个用例全部通过 - git diff --check:通过 - 原 PR:!7031、!7032、!7033(已关闭) **原 PR 链接** - !7031 https://gitcode.com/cann/pypto/merge_requests/7031 - !7032 https://gitcode.com/cann/pypto/merge_requests/7032 - !7033 https://gitcode.com/cann/pypto/merge_requests/7033 See merge request: cann/pypto!7205 | 23 days 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(dist): Support distribute for pypto_pro Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !7250 merge dist3 into master feat(dist): Support distribute for pypto_pro Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: distributed communication (dist) support (UBMEM&URMA) Adds kernel-side distributed communication capability across the device/machine/IR/codegen/frontend/Python-binding stack: - device: add device-side distributed runtime header pypto_distribute.h (windows, channels, transfers), plus pypto_panic/pypto_assert helpers and DIST_CHECK macros - machine: add WindowContext host runtime and pybind dist module, with a DistributeContext interface - IR: add WindowType and the dist.* op definitions (dist_ops.cpp/py) - codegen: lower dist.* ops to CCE (backend_cce_ops.cpp, backend_cce_block_out_ops.cpp, cce_codegen.cpp); fix line wrapping of the set_ctrl_spr atomic-op-type error message - frontend: expose pld.* APIs (windows/channels/transfers) inside kernels; add pl.tensor_view for no-copy GM tensor sub-views - runtime: resolve dist include paths and sanitizer traps for kernels at compile time - parser: drop stale design references from parser docs - tests: add pld.* frontend dispatch UTs, window ST (test_window.py), and tensor_view parsing/CCE codegen UTs See merge request: cann/pypto!7250 | 21 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 | 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 | 3 months ago |
| Initial commit | 10 months ago |
| feat(machine): Support aic error probe & analyze Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !7165 merge aic_print into master feat(machine): Support aic error probe & analyze Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 为 AICore error 调试链路补充 probe(printf插桩) 与 analyze(解析定位) 能力 See merge request: cann/pypto!7165 | 24 days 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 |
| docs(install): Add English install docs and restructure install directory Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !7320 merge docs/install-en-translation into master docs(install): Add English install docs and restructure install directory Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: ### 变更说明 新增英文安装文档并重构安装目录结构: - 新增 docs/en/install/ 英文安装文档:index.md、prepare_environment.md、build_and_install.md、examples_invocation.md - 重构中文安装目录:将 prepare_environment.md、examples_invocation.md 移动至 docs/zh/install/,与英文目录结构对齐 - 将产品标签规则合并至开源写作规范(.agents/skills/pypto-doc-reviewer) See merge request: cann/pypto!7320 | 19 days ago |
| docs(install): Add English install docs and restructure install directory Co-authored-by: lyz0328<liyanzhen@huawei.com> # message auto-generated for no-merge-commit merge: !7320 merge docs/install-en-translation into master docs(install): Add English install docs and restructure install directory Created-by: lyz0328 Commit-by: lyz0328 Merged-by: cann-robot Description: ### 变更说明 新增英文安装文档并重构安装目录结构: - 新增 docs/en/install/ 英文安装文档:index.md、prepare_environment.md、build_and_install.md、examples_invocation.md - 重构中文安装目录:将 prepare_environment.md、examples_invocation.md 移动至 docs/zh/install/,与英文目录结构对齐 - 将产品标签规则合并至开源写作规范(.agents/skills/pypto-doc-reviewer) See merge request: cann/pypto!7320 | 19 days 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 | 4 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 | 4 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 | 2 months ago |
| feat(pypto-pro): Support_a6 Co-authored-by: gravel1997<shili19@huawei.com> # message auto-generated for no-merge-commit merge: !7176 merge a6_support into master feat(pypto-pro): Support_a6 Created-by: gravel1997 Commit-by: gravel1997 Merged-by: cann-robot Description: feat(pypto-pro): Support_a6 Related Issue: [#3666](https://gitcode.com/cann/pypto/issues/3666) See merge request: cann/pypto!7176 | 17 days ago |
| feat(version): Bump pypto version from 0.2.1 to 0.3.0 Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !7026 merge master into master feat(version): Bump pypto version from 0.2.1 to 0.3.0 Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: feat(version): Bump pypto version from 0.2.1 to 0.3.0 The wheel and sdist packages built by python3 build_ci.py --clean --no_isolation currently carry version 0.2.1. Bump the package version to 0.3.0 for the new release, and switch the packaging scripts from hardcoded whl file names to wildcard matching so future releases only need to update pyproject.toml. This mirrors the change already merged on the 9.2.0 branch (cann/pypto!6300). Changes: - Update version in pyproject.toml from 0.2.1 to 0.3.0 - Change the whl file name in scripts/package/module/ascend/PyptoSo.xml to wildcard pypto-*.whl - Change the whl file path in scripts/package/pypto/scripts/pypto_custom_install.sh to dynamic glob matching - Add the 9.2.0 -> 0.3.0 CANN-PyPTO version mapping in docs/zh/install/build_and_install.md - Update the pip show pypto example version in .agents/skills/pypto-simulation/SKILL.md to 0.3.0 Verified with python3 build_ci.py --clean --no_isolation, which produces pypto-0.3.0-cp37-abi3-manylinux2014_aarch64.whl and pypto-0.3.0.tar.gz, and the run package correctly contains the 0.3.0 whl. See merge request: cann/pypto!7026 | 30 days 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 | 2 months ago |
| fix(build): Update CANN package version to 9.3.0 Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !7322 merge fix/build-cann-version-9.3.0 into master fix(build): Update CANN package version to 9.3.0 Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: fix(build): Update CANN package version to 9.3.0 The run package version is read from version.cmake. Bump it to 9.3.0 so the generated run package matches the CANN 9.3.0 release instead of 9.2.0. Changes: - Update set_cann_package(pypto VERSION ...) from 9.2.0 to 9.3.0 in version.cmake Verification: - python3 build_ci.py --no_isolation succeeded - Artifact: build_out/cann-pypto_9.3.0_linux-aarch64.run; version.info and whl X-Run-Version report 9.3.0 Related Issues: #3330 See merge request: cann/pypto!7322 | 19 days ago |