| Files | Last commit | Last update |
|---|---|---|
feat(platform): Add Platform config Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !6063 merge platformconfig into master feat(platform): Add Platform config Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景: 原始的platform信息并沿用了机器层面命名。 本 PR 对平台配置域做概念规范化,统一到三个标准概念: 1. soc_series:原 short_soc_version(ini 键 Short_SoC_version),如 Ascend950; 2. soc_version:芯片分 bin(ini 键 SoC_version,每个 soc_version 一个 ini 文件),如 Ascend950PR_9589; 3. NPU_ARCH:核架构名称(ini 键 NpuArch),如 3510/2201。 A2/A3/A5 属于整机(chip + host CPU/网卡/机箱)层面的机器概念,不再用于平台配置选择。 Changes: - platform_config 精简为实际交付的 13 个 soc_version ini(69 -> 13),规格与 CANN 9.2.0 包内文件一致;Ascend910_9363、Ascend950DT_9581X 按交付需求保留 - DPlatform 枚举适配真实 soc_version,不再自定义枚举值:删除与实际芯片不符的 ASCEND_950DT_9579/ASCEND_950PR_9582(对应真实 bin 为 Ascend950DT_9572/Ascend950PR_9589), 补充 ASCEND_910_9363/ASCEND_950DT_9581X - platform.h 新增 DPlatformToNPUArch(),统一 soc_version -> NPU_ARCH 映射 (910B 系列 -> 2201,950 系列 -> 3510,Kirin -> 3113/3003) - GetCyclesForPass 仿真器选择改为按 NPU_ARCH 判断(3510 -> "A5",其余 -> "A2A3"), 不再按 A2A3/A5 机器名前缀匹配;A2A3/A5 仅作为 cost model 内部实现类型名保留 - 默认 device_platform 统一为标准格式 Ascend910B2(config_manager.h / tile_fwk_config.json) - CMakeLists 安装清单与交付 ini 清单保持一致 - UT 同步更新:枚举映射、legacy 格式兼容、NPU_ARCH 映射、ini 规格加载用例, 新增 Ascend910_9363 / Ascend950DT_9581X 用例 兼容性: - 旧格式 device_platform(如 "ASCEND_910B2")仍可识别,自动归一化为标准 soc_version 并打印告警; 其中 ASCEND_950DT_9579 -> Ascend950DT_9572、ASCEND_950PR_9582 -> Ascend950PR_9589, 与其原先实际加载的 ini 规格保持一致 - ASCEND_910C4 为无效值,回落默认 Ascend910B2(与原行为一致) Tests: - TestDevicePlatformConfig(16 例)、TestConfigManager、CostModelTest 相关用例全部通过; See merge request: cann/pypto!6063 | 2 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Co-authored-by: Zehai<wangzehai3@huawei.com> Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: yuxin5<yuxin5@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: zhouxuan78<zhouxuan78@huawei.com> # message auto-generated for no-merge-commit merge: !6752 merge dev into master feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Created-by: yuxin5 Commit-by: Zehai;yuxin5;zhouxuan78;xutianlong1;royccc;hongyiliu111 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_filter and its 2D implementation on A2/A3 Add pypto.conv_backward_filter interface to compute the gradient of convolution with respect to the weight tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_filter frontend interface with parameter validation - Implement ConvBackwardFilter 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!6752 | 1 month 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 | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 3 months ago | |
fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5506 merge fix/simulation-null-deref-and-oob into master fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Two defensive coding fixes in the cost model simulation module to prevent undefined behavior from unvalidated external inputs. Changes: - Add null check for dlsym return value in PvModelFactory::CreateDyn, throw runtime_error if symbol not found - Parameterize soPath in CreateDyn for testability, default value preserves existing behavior - Validate fields vector size before indexed access in CostModelAgent::ParseDynTopo, skip invalid lines - Add unit test for ParseDynTopo with insufficient fields and dlsym null check Closes #3011, #3021 See merge request: cann/pypto!5506 | 3 months ago | |
chore: normalize CRLF to LF in 4 Python files (#3454) Co-authored-by: lizixuan1020<3064268022@qq.com> # message auto-generated for no-merge-commit merge: !6729 merge fix/crlf-line-endings-3454 into master chore: normalize CRLF to LF in 4 Python files (#3454) Created-by: lizixuan1020 Commit-by: lizixuan1020 Merged-by: cann-robot Description: ### PR功能描述 / 为什么需要这个合入 按 issue #3454 将 4 个 100% CRLF 行尾的 Python 文件归一为 LF(与全仓其它 .py 一致): | 文件 | 原状态 | 转换后 | |---|---|---| | tools/verifier/pass_compare.py | 746 行全 CRLF | 0 CRLF | | tools/verifier/tensor_diff.py | 357 行全 CRLF | 0 CRLF | | python/pypto/op/distributed.py | 485 行全 CRLF | 0 CRLF | | framework/src/cost_model/simulation/scripts/perf_baseline.py | 179 行全 CRLF | 0 CRLF | 采用 issue 建议的逐文件修法(sed s/\r$//)。.gitattributes 的 *.py text eol=lf 强制归一为制度性可选项,涉及全仓策略,留待维护方决策,本 PR 不含(如需要可另行提交)。 ### 改动类型 - 其它 / Other(行尾归一,无内容变更) ### 测试信息 - 行数守恒:4 文件转换前后行数逐一相等(746/357/485/179) - CRLF 计数:转换后 4 文件均为 0 - python3 -m py_compile 4/4 通过 - **零内容变化证明**:git diff --ignore-cr-at-eol 对前一版本为空 diff(0 行)——除行尾外字节级一致 - 本 PR 自身的 diff 显示 1767+/1767- 对称改动,即每行仅行尾变化(修复后这些文件未来的 diff 将不再整文件重写) fixes #3454 See merge request: cann/pypto!6729 | 2 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 3 months ago | |
refactor(build): Reuse the common compilation options from common cmake. Co-authored-by: Feiteng Zheng<zhengfeiteng1@h-partners.com> # message auto-generated for no-merge-commit merge: !5292 merge 20260728-intf-pub-2 into master refactor(build): Reuse the common compilation options from common cmake. Created-by: zhengfeiteng Commit-by: Feiteng Zheng Merged-by: cann-robot Description: 切换使用 cann/cmake 仓规定的 intf_pub。 - 通过CANN_GLIBCXX_USE_CXX11_ABI属性设置tile_fwk_calculator的_GLIBCXX_USE_CXX11_ABI Related Issue: #2650 See merge request: cann/pypto!5292 | 3 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 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(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5506 merge fix/simulation-null-deref-and-oob into master fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Two defensive coding fixes in the cost model simulation module to prevent undefined behavior from unvalidated external inputs. Changes: - Add null check for dlsym return value in PvModelFactory::CreateDyn, throw runtime_error if symbol not found - Parameterize soPath in CreateDyn for testability, default value preserves existing behavior - Validate fields vector size before indexed access in CostModelAgent::ParseDynTopo, skip invalid lines - Add unit test for ParseDynTopo with insufficient fields and dlsym null check Closes #3011, #3021 See merge request: cann/pypto!5506 | 3 months ago | |
feat(machine): Runtime dyn topo correctness check Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !2681 merge duanhaotian5 into master feat(machine): Runtime dyn topo correctness check Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: PyPTO 框架在 device 侧运行算子时,会通过 **Stitch 机制** 将多个 Root Function 实例合并到同一个 DeviceTask 中执行,以减少调度开销、提升执行效率。Stitch 过程中需要在不同 Function 实例之间**动态建立依赖边**,确保数据写入与读取之间的执行顺序正确。 这些动态建立的依赖边直接决定了算子的**正确性**——如果依赖边错误建立(多建)或遗漏(漏建),会导致: - **多建依赖**:不必要的串行化,降低执行并行度,影响性能 - **漏建依赖**:数据竞争,producer 未完成写入时 consumer 提前读取,导致**精度错误或随机崩溃** 当前框架中,stitch 依赖的建立涉及多种类型(FullCover、Partial、Reuse)、多种触发路径(CellMatch 表驱动、workspace 复用检测),且依赖边的目标是由编译期的 slot 信息与运行时的 function 实例组合决定的。这一过程的复杂性使得: 1. **问题定位困难**:当出现精度问题时,开发者需要判断是"依赖边丢失"还是"stitch 语义处理错误"还是"用户算子逻辑错误",但缺乏直接的观测手段 2. **回归验证缺失**:stitch 相关代码修改后,无法快速验证依赖建立行为是否保持正确 3. **信息分散**:编译期的 program.json 和运行时的 dyn_topo.txt 分属不同阶段、不同格式,人工对比极为困难 **本方案的目标**:建立一套基于数据文件的、可自动化执行的运行时依赖边正确性校验体系,实现"编译期意图 vs 运行时行为"的系统化对比验证。 See merge request: cann/pypto!2681 | 6 months ago | |
refactor(cost_model): Remove dead code and fix log message spelling Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5703 merge refactor/cost-model-cleanup into master refactor(cost_model): Remove dead code and fix log message spelling Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: refactor(cost_model): Remove dead code and fix log message spelling Clean up code quality issues in framework/src/cost_model/simulation/ directory: 1. Fix 5 spelling/grammar errors in log messages (Genearte→Generate, equels→equal, Uissued→Unissued, "is error"→"is invalid", "is not equals"→"is not equal") 2. Remove 13 unused #include <iostream> across the codebase 3. Remove 17 unused functions, 3 unused virtual...final methods, 2 undefined declarations, and 1 unused class (SimplifiedMemoryAllocator) 4. Fix PvModel output directory creation: only create if not exists, instead of delete-then-recreate Changes: - Fix log message spelling errors in ModelTop.cpp, CoreMachine.cpp, Config.h, ParseInput.cpp - Remove unused iostream includes, replace with <string> where needed - Remove dead code: unused functions, virtual methods, declarations, and class - Remove std::cout from ToDataType, return default DT_FP16 directly - Fix DynPvModelImpl to create output dir only when it does not exist Related Issues: #3104 See merge request: cann/pypto!5703 | 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 |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 1 month ago | ||
| 7 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 7 months ago | ||
| 3 months ago | ||
| 6 months ago | ||
| 3 months ago | ||
| 7 months ago |