| Files | Last commit | Last update |
|---|---|---|
fix(Operation): keep non-last-axis IndexAdd on TSTORE path Co-authored-by: chenbl<chenbinglin7@huawei.com> # message auto-generated for no-merge-commit merge: !6853 merge fix/indexadd-row-simt-regression into master fix(Operation): keep non-last-axis IndexAdd on TSTORE path Created-by: chenbl Commit-by: chenbl Merged-by: cann-robot Description: 在 IndexAdd 前端按索引轴选择实现: - 非末轴更新走原 TIndexAdd / TSTORE AtomicAdd 路径,不设置 requires_simt。 - 末轴更新保持原有的 SIMT 选择条件。 - 更新代码生成用例,覆盖 FP32、FP16、BF16 的轴向选择。 See merge request: cann/pypto!6853 | 1 month ago | |
fix(pypto_pro): add Scaling and Bias capacity mappings Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !6915 merge fixdocs into master fix(pypto_pro): add Scaling and Bias capacity mappings Created-by: fafafafafa Commit-by: fa 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!6915 | 1 month ago | |
refactor(machine): Remove unused DevicePerf::RunPrepare Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !6924 merge pgo-framework into master refactor(machine): Remove unused DevicePerf::RunPrepare Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: DevicePerf::RunPrepare has no production caller: its only call site was removed together with the legacy DeviceRunner launch path in 34770d5bd ("Unify C++ launch path to use KernelBinary and LaunchKernel"). The per-launch refresh of the perf data pointers is already handled by DeviceLauncher::SetDevPerfAddr -> DevicePerf::SetDebugEnable, which runs on every launch (device_launcher.cpp), so RunPrepare is dead code. Changes: - Remove the unused DevicePerf::RunPrepare definition and declaration - Remove the DevicePerfTest.RunPrepare_DebugMode unit test - Remove the include that became unused after the deletion Verification: - device_perf.cpp syntax-checked with the project's own compile flags (build/compile_commands.json), UT file checked with the same flags + gtest - pre-commit checks passed on commit See merge request: cann/pypto!6924 | 1 month ago | |
refactor(pass): Unify memory pass framework and post processing Co-authored-by: zhaosenqiu<zhaosenqiu@huawei.com> # message auto-generated for no-merge-commit merge: !6838 merge amt-merge into master refactor(pass): Unify memory pass framework and post processing Created-by: zhaosenqiu Commit-by: zhaosenqiu Merged-by: cann-robot Description: refactor(pass): Unify memory pass framework and post processing To keep the enable_slice ON and OFF states from interfering with each other, the data path memory passes previously kept the standard and legacy versions completely separate, which brought duplicated logic and heavy maintenance overhead. This PR is the first part of the code merge: it unifies the overall framework and some post-processing capabilities of the two versions into one unified implementation, reducing the cost of maintaining multiple branched versions and paving the way for enabling enable_slice by default. The merge of the core logic will be submitted in follow-up PRs. Changes: - Unify the assign memory type skeleton and pipeline - Merge opcode-only memory inference - Normalize memory move opcodes and validate move semantics by requirement - Refactor the resolve inconsistent raw tensor scenario and unify resolve memory unknowns - Merge convert op inserters (remove the legacy inserter) - Pre-commit modifications Commits: - 56c36483e refactor(pass): merge convert op inserters - 546990994 refactor(pass): unify assign memory type skeleton - 717336e6b refactor(pass): merge opcode-only memory inference - 85aa879b7 refactor(pass): Pre-commit modifications - 61c04f66a refactor(pass): unify assign memory type pipeline - d30d4d7b5 refactor(pass): normalize memory move opcodes - edd722a1b fix(pass): validate move semantics by requirement - 0ba2020c9 refactor(pass): refactor resolve inconsistent raw tensor scenario - 8e956370e refactor(pass): unify resolve memory unknowns Related Issues: #3517 --- 为避免 enable_slice 开启与关闭两种状态互相干扰,data_path 内存相关 Pass 此前将标准版本与 legacy 版本完全分开维护,带来了大量重复逻辑和沉重的维护开销。 本 PR 为代码融合的第一部分:将两个版本的整体框架与部分后续处理能力融合为统一实现,降低多分支版本的维护成本,为默认开启 enable_slice 铺路。最核心逻辑的融合将在后续 PR 中提交。 变更点: - 统一 assign memory type 的骨架与流水线 - 融合仅基于 opcode 的内存推导 - 规范化内存搬移 opcode,并按需求校验搬移语义 - 重构 inconsistent raw tensor 场景的处理,并统一 resolve memory unknowns - 融合 convert op inserter(移除 legacy inserter) - 提交前预处理修改 Related Issues: #3517 See merge request: cann/pypto!6838 | 1 month ago | |
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(operator): Remove tile_fwk_operator library and associated tests. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5704 merge delete_test into master refactor(operator): Remove tile_fwk_operator library and associated tests. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 整改库上代码,删除 framework/src/operator python/tests/st/operator/glm python/tests/st/operator/test_page_attention.py 以及相关涉及文件 See merge request: cann/pypto!5704 | 3 months ago | |
refactor(operator): Remove tile_fwk_operator library and associated tests. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5704 merge delete_test into master refactor(operator): Remove tile_fwk_operator library and associated tests. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 整改库上代码,删除 framework/src/operator python/tests/st/operator/glm python/tests/st/operator/test_page_attention.py 以及相关涉及文件 See merge request: cann/pypto!5704 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago |