| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| refactor(agent): Remove operator-development skills and agents Co-authored-by: wangzheng97<wangzheng97@hisilicon.com> # message auto-generated for no-merge-commit merge: !4605 merge chore-remove-op-dev-skills into master refactor(agent): Remove operator-development skills and agents Created-by: wangzheng97 Commit-by: wangzheng97 Merged-by: cann-robot Description: refactor(agent): Remove operator-development skills and agents The agents and skills in this repository should focus on developing and maintaining the PyPTO framework itself: debugging and error location, compile-time Pass analysis, environment setup, and PR/Issue workflows. This PR removes the operator-development skills and agents together with their state-machine plugins and lint hook, so the tooling scope matches the repository. Changes: - Delete 17 operator-development skills (api-explore, golden-generate, op-design, op-develop, op-perf-tune, precision-compare, fused-op-integration, etc.) - Delete 9 operator-development agents (op-orchestrator, op-coder, op-verifier, etc.) - Delete state-machine plugins (.opencode/plugins/: op-lint, state-transition) and the lint engine (.agents/hooks/pypto-op-lint/) - Delete migrate-huggingface-to-npu (unrelated to framework maintenance) - Update .agents/README.md and AGENTS.md, and delete .agents/settings.json, to drop the now-dangling references; trim AGENTS.md to project scope, general principles and entry-point lookup - Consolidate AGENTS.md's general principles into 5 core rules: the 4 principles from Andrej Karpathy's CLAUDE.md (official Chinese translation, forrestchang/andrej-karpathy-skills) — think before coding, simplicity first, surgical changes, goal-driven execution — plus one evidence-before-conclusion rule for diagnostic work - Inline list_idle_chip_ids.sh into pypto-environment-setup and fix dangling references in pypto-skill-validation-prompt and docs/zh/trouble_shooting - Keep pypto-code-merge-agent and the framework debugging / Pass / environment / PR-Issue skills Related Issues: #2533 See merge request: cann/pypto!4605 | 4 months ago |
| fix(build): Fix the binary SHA256 hash value of cannot cmake Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4751 merge master into master fix(build): Fix the binary SHA256 hash value of cannot cmake Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 该 PR 修复了 cmake/fetch_cann_cmake.cmake 中 FetchContent_Declare 所使用的 CANN CMake 归档文件的 SHA256 校验值。由于之前记录的哈希值与实际下载的文件不匹配,导致 CMake 构建流程中的哈希校验失败。此次变更将两个下载源(本地路径和远程 URL)对应的 URL_HASH SHA256 统一更新为正确的哈希值 464693dc211c618b4bca69a5bdbcf4a83550a4e8383ce9dff20fb66a08915fb8。 ## 主要改动 - **修正 URL_HASH SHA256 哈希值**:在 cmake/fetch_cann_cmake.cmake 中,将 FetchContent_Declare 的两处 URL_HASH SHA256 从旧值 b0db2d4d0d2e94bd0dd961d88dc16b6b042fbacb4de4acb9530128c98e637fca 更新为 464693dc211c618b4bca69a5bdbcf4a83550a4e8383ce9dff20fb66a08915fb8,分别对应本地 PypTo 第三方路径下载源和 raw.gitcode.com 远程下载源,确保两种获取方式下哈希校验均能通过。 See merge request: cann/pypto!4751 | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| fix(all): Fix typos and grammar in templates, docs and scripts Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4886 merge docs-typos into master fix(all): Fix typos and grammar in templates, docs and scripts Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix typos and grammar in templates, docs and scripts See merge request: cann/pypto!4886 | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 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(dfx): Update compiler monitor api doc for tracking compilation progress and detecting timeout. Co-authored-by: z00521416<zhangyongtao7@hisilicon.com> # message auto-generated for no-merge-commit merge: !1511 merge master into master feat(dfx): Update compiler monitor api doc for tracking compilation progress and detecting timeout. Created-by: z00521416 Commit-by: z00521416 Merged-by: cann-robot Description: 1. Update compiler monitor api doc for tracking compilation progress and detecting timeout. 2. Migrate PNG files to LFS. See merge request: cann/pypto!1511 | 8 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 |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| refactor(agent): Remove operator-development skills and agents Co-authored-by: wangzheng97<wangzheng97@hisilicon.com> # message auto-generated for no-merge-commit merge: !4605 merge chore-remove-op-dev-skills into master refactor(agent): Remove operator-development skills and agents Created-by: wangzheng97 Commit-by: wangzheng97 Merged-by: cann-robot Description: refactor(agent): Remove operator-development skills and agents The agents and skills in this repository should focus on developing and maintaining the PyPTO framework itself: debugging and error location, compile-time Pass analysis, environment setup, and PR/Issue workflows. This PR removes the operator-development skills and agents together with their state-machine plugins and lint hook, so the tooling scope matches the repository. Changes: - Delete 17 operator-development skills (api-explore, golden-generate, op-design, op-develop, op-perf-tune, precision-compare, fused-op-integration, etc.) - Delete 9 operator-development agents (op-orchestrator, op-coder, op-verifier, etc.) - Delete state-machine plugins (.opencode/plugins/: op-lint, state-transition) and the lint engine (.agents/hooks/pypto-op-lint/) - Delete migrate-huggingface-to-npu (unrelated to framework maintenance) - Update .agents/README.md and AGENTS.md, and delete .agents/settings.json, to drop the now-dangling references; trim AGENTS.md to project scope, general principles and entry-point lookup - Consolidate AGENTS.md's general principles into 5 core rules: the 4 principles from Andrej Karpathy's CLAUDE.md (official Chinese translation, forrestchang/andrej-karpathy-skills) — think before coding, simplicity first, surgical changes, goal-driven execution — plus one evidence-before-conclusion rule for diagnostic work - Inline list_idle_chip_ids.sh into pypto-environment-setup and fix dangling references in pypto-skill-validation-prompt and docs/zh/trouble_shooting - Keep pypto-code-merge-agent and the framework debugging / Pass / environment / PR-Issue skills Related Issues: #2533 See merge request: cann/pypto!4605 | 4 months ago |
| refactor(machine): Unify launch API and extract CtrlFlowCacheManager Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !4837 merge refactor/unify-launch-api into master refactor(machine): Unify launch API and extract CtrlFlowCacheManager Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: refactor(machine): Unify launch API and extract CtrlFlowCacheManager Unify device launch flow into DeviceLauncher::LaunchKernel/PrepareLaunch/EmulationLaunch so that Python and C++ test sides share one launch API. Remove redundant Aicpu/aicore kernel_launch flow from DeviceRunner. Extract host control flow cache management into CtrlFlowCacheManager singleton. Changes: - Add DeviceLauncher::LaunchKernel/PrepareLaunch/EmulationLaunch unified APIs - Extract CtrlFlowCacheManager singleton from KernelModule - Remove DynamicRun/DynamicLaunch/DynamicKernelLaunch/DynamicTripleStreamLaunch from DeviceRunner - Add DeviceRunner::LaunchAiCpuTask/GetLaunchAicpuKernelArgs/GetKernelArgsRef etc - Update KernelBinary with PatchRuntimeDynamicCellMatchAddrToCfgData/GetCacheCtrFlowCache - Update runtime.cpp KernelModule to use new unified APIs - Update test files to use new APIs Depends on PR #4836 (class extraction) See merge request: cann/pypto!4837 | 4 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(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 |
| Initial commit | 10 months ago |
| feat(build): Compile pypto_impl online support multi user Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4327 merge master into master feat(build): Compile pypto_impl online support multi user Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 此 PR 为 pypto_impl 的在线编译流程增加了多用户场景支持。核心改动集中在 BuildOnlinePyptoImplManager 类中:通过引入 fcntl 文件锁实现跨进程编译协调、新增用户级缓存目录回退机制、以及基于 importlib 的非标准路径动态加载能力,使得不同用户可以在共享安装目录下安全地并发编译和加载 pypto_impl.so,避免了写冲突和重复编译。 ## 主要改动 - **多进程编译协调与文件锁机制**:BuildOnlinePyptoImplManager.ensure_pypto_impl 新增基于 fcntl.flock 的文件锁协调逻辑(_try_acquire_lock、_wait_and_compile),配合 _poll_until 轮询等待,确保同版本 Python 的多进程不会同时执行编译;锁文件在编译完成后被删除,用于跨用户的 os.path.exists() 状态检测。 - **编译产物缓存目录回退**:新增 _compute_cache_dir 方法,通过文件归属用户(st_uid)判断与实际写入验证双重检测,决定编译产物安装到 pkg_dir(共享路径)还是用户级缓存目录(~/.cache/cann/pypto)。当用户对 pkg_dir 无写权限时自动回退,实现多用户环境下的安全编译。 - **跨用户编译等待共享**:新增 _wait_for_pkg_dir_compilation 方法,通过只读检查 pkg_dir 下的 lock 文件是否存在,感知其他用户正在进行的编译,并等待其完成后复用产物,避免重复编译。 - **非标准路径的 .so 动态加载**:新增 _load_from_cache 方法,通过 importlib.util.spec_from_file_location 和 sys.modules 注册,支持从缓存目录等非 pkg_dir 路径加载 pypto_impl.so,同时将模块注册为 pypto.pypto_impl 属性和 sys.modules 条目,确保 from pypto import pypto_impl 可正确访问。 See merge request: cann/pypto!4327 | 5 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 |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Remove trailing whitespace and add missing EOF newlines | 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 | 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 |
| style(all): Remove trailing whitespace and add missing EOF newlines | 4 months ago |
| style(all): Simplify pre-commit config and update release scope | 4 months ago |
| feat(build): Support packing whl into run Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4267 merge master into master feat(build): Support packing whl into run Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 此 PR 为 PyPTO 项目新增了将 Python wheel (.whl) 包打入 CANN .run 安装包的能力。通过引入 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 特性开关,将构建产物(whl 包及脚本)整合到 CANN 标准的 run 包交付流程中,使 whl 包能随 run 包一起分发和安装。整体改动涵盖 CMake 构建体系扩展、安装/卸载脚本框架搭建、包描述 XML 配置以及 CI 构建入口适配。 ## 主要改动 - **新增 CMake 打包基础设施**:新增 cmake/package.cmake(安装 whl 及脚本到 run 包目录结构)、cmake/prepare.cmake(第三方路径初始化)、cmake/fetch_cann_cmake.cmake(自动下载 CANN 公共 cmake 脚本)、version.cmake(版本声明 9.1.0),均在 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 开关控制下生效;cmake/config.cmake 中移除了部分不再需要的配置(-17 行)。 - **新增 run 包安装/卸载脚本体系**:在 scripts/package/pypto/scripts/ 下新增 10 个 Shell 脚本,包括 install.sh(安装入口)、uninstall.sh(卸载入口)、run_pypto_install.sh(文件拷贝调度及 whl 的 pip install 后处理)、run_pypto_uninstall.sh(卸载流程)、pypto_custom_install.sh/pypto_custom_uninstall.sh(自定义安装/卸载逻辑)、pypto_func.sh(公共函数库,492 行)、ver_check.sh(版本校验)、cleanup.sh 和 help.info,构成了完整的 run 包生命周期管理。 - **新增包描述 XML 配置**:新增 scripts/package/pypto/pypto.xml 作为 run 包的主配置文件(定义包名 pypto、安装脚本路径、版本信息、目录结构等),并在 scripts/package/module/ascend/ 下新增 5 个模块级 XML(EngineeringCommon.xml、EngineeringFiles.xml、PyptoBin.xml、PyptoInc.xml、PyptoSo.xml),用于描述不同子模块的安装路径和权限。 - **CI 构建入口 build_ci.py 适配**:大幅扩展 build_ci.py(+80/-32),使其支持打包 whl 到 run 包的新构建模式,整合新的 CMake 流程和参数配置。 See merge request: cann/pypto!4267 | 5 months ago |
| feat(build): Support pypto.run install in python3.7 & 3.8 Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4576 merge master into master feat(build): Support pypto.run install in python3.7 & 3.8 Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: feat(build): Support pypto.run install in python3.7 & 3.8 See merge request: cann/pypto!4576 | 4 months ago |
| feat(build): Support packing whl into run Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4267 merge master into master feat(build): Support packing whl into run Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 此 PR 为 PyPTO 项目新增了将 Python wheel (.whl) 包打入 CANN .run 安装包的能力。通过引入 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 特性开关,将构建产物(whl 包及脚本)整合到 CANN 标准的 run 包交付流程中,使 whl 包能随 run 包一起分发和安装。整体改动涵盖 CMake 构建体系扩展、安装/卸载脚本框架搭建、包描述 XML 配置以及 CI 构建入口适配。 ## 主要改动 - **新增 CMake 打包基础设施**:新增 cmake/package.cmake(安装 whl 及脚本到 run 包目录结构)、cmake/prepare.cmake(第三方路径初始化)、cmake/fetch_cann_cmake.cmake(自动下载 CANN 公共 cmake 脚本)、version.cmake(版本声明 9.1.0),均在 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 开关控制下生效;cmake/config.cmake 中移除了部分不再需要的配置(-17 行)。 - **新增 run 包安装/卸载脚本体系**:在 scripts/package/pypto/scripts/ 下新增 10 个 Shell 脚本,包括 install.sh(安装入口)、uninstall.sh(卸载入口)、run_pypto_install.sh(文件拷贝调度及 whl 的 pip install 后处理)、run_pypto_uninstall.sh(卸载流程)、pypto_custom_install.sh/pypto_custom_uninstall.sh(自定义安装/卸载逻辑)、pypto_func.sh(公共函数库,492 行)、ver_check.sh(版本校验)、cleanup.sh 和 help.info,构成了完整的 run 包生命周期管理。 - **新增包描述 XML 配置**:新增 scripts/package/pypto/pypto.xml 作为 run 包的主配置文件(定义包名 pypto、安装脚本路径、版本信息、目录结构等),并在 scripts/package/module/ascend/ 下新增 5 个模块级 XML(EngineeringCommon.xml、EngineeringFiles.xml、PyptoBin.xml、PyptoInc.xml、PyptoSo.xml),用于描述不同子模块的安装路径和权限。 - **CI 构建入口 build_ci.py 适配**:大幅扩展 build_ci.py(+80/-32),使其支持打包 whl 到 run 包的新构建模式,整合新的 CMake 流程和参数配置。 See merge request: cann/pypto!4267 | 5 months ago |
| fix(build): Prohibit directly calling the pip install command Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4703 merge master into master fix(build): Prohibit directly calling the pip install command Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 此 PR 在构建流程中增加了防呆保护机制,禁止用户直接执行 pip install . 或 pip install -e . 来覆盖 cann-toolkit 中已安装的 PyPTO 包。通过在 build_ci.py 中设置 PYPTO_ALLOW_WHL_BUILD 环境变量,并在 setup.py 的 SetupCtrl 中检查该变量,确保只有通过 build_ci.py 触发的构建流程才被允许生成 .whl 包。 ## 主要改动 - **build_ci.py 中注入环境变量**: 在 BuildCtrl 类的 get_cmake_build_update_env 方法中,新增 PYPTO_ALLOW_WHL_BUILD 环境变量并设为 "1",作为允许 whl 构建的标识。 - **setup.py 中增加启动前检查**: 在 SetupCtrl 的 whl 构建入口处读取 PYPTO_ALLOW_WHL_BUILD 环境变量,若未设置或为假值则抛出 RuntimeError,提示用户使用 .run 格式的二进制包或 build_ci.py 来管理 PyPTO。 See merge request: cann/pypto!4703 | 4 months ago |
| feat(build): Support packing whl into run Co-authored-by: DCGDDD<yangxu14@huawei.com> # message auto-generated for no-merge-commit merge: !4267 merge master into master feat(build): Support packing whl into run Created-by: DCGDDD Commit-by: DCGDDD Merged-by: cann-robot Description: ## 变更摘要 此 PR 为 PyPTO 项目新增了将 Python wheel (.whl) 包打入 CANN .run 安装包的能力。通过引入 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 特性开关,将构建产物(whl 包及脚本)整合到 CANN 标准的 run 包交付流程中,使 whl 包能随 run 包一起分发和安装。整体改动涵盖 CMake 构建体系扩展、安装/卸载脚本框架搭建、包描述 XML 配置以及 CI 构建入口适配。 ## 主要改动 - **新增 CMake 打包基础设施**:新增 cmake/package.cmake(安装 whl 及脚本到 run 包目录结构)、cmake/prepare.cmake(第三方路径初始化)、cmake/fetch_cann_cmake.cmake(自动下载 CANN 公共 cmake 脚本)、version.cmake(版本声明 9.1.0),均在 ENABLE_FEATURE_PACKING_WHL_INTO_RUN 开关控制下生效;cmake/config.cmake 中移除了部分不再需要的配置(-17 行)。 - **新增 run 包安装/卸载脚本体系**:在 scripts/package/pypto/scripts/ 下新增 10 个 Shell 脚本,包括 install.sh(安装入口)、uninstall.sh(卸载入口)、run_pypto_install.sh(文件拷贝调度及 whl 的 pip install 后处理)、run_pypto_uninstall.sh(卸载流程)、pypto_custom_install.sh/pypto_custom_uninstall.sh(自定义安装/卸载逻辑)、pypto_func.sh(公共函数库,492 行)、ver_check.sh(版本校验)、cleanup.sh 和 help.info,构成了完整的 run 包生命周期管理。 - **新增包描述 XML 配置**:新增 scripts/package/pypto/pypto.xml 作为 run 包的主配置文件(定义包名 pypto、安装脚本路径、版本信息、目录结构等),并在 scripts/package/module/ascend/ 下新增 5 个模块级 XML(EngineeringCommon.xml、EngineeringFiles.xml、PyptoBin.xml、PyptoInc.xml、PyptoSo.xml),用于描述不同子模块的安装路径和权限。 - **CI 构建入口 build_ci.py 适配**:大幅扩展 build_ci.py(+80/-32),使其支持打包 whl 到 run 包的新构建模式,整合新的 CMake 流程和参数配置。 See merge request: cann/pypto!4267 | 5 months ago |