| Files | Last commit | Last update |
|---|---|---|
fix(all): Fix spelling errors in source comments and diagnostic messages Co-authored-by: wangmingjun<wangmingjun13@huawei.com> # message auto-generated for no-merge-commit merge: !5392 merge fix/spelling-errors-2908 into master fix(all): Fix spelling errors in source comments and diagnostic messages Created-by: hwwangmingjun Commit-by: wangmingjun Merged-by: cann-robot Description: fix(all): Fix spelling errors in source comments and diagnostic messages 修复源码注释、错误信息和调试日志中多处英文拼写错误,避免阅读诊断输出时产生误解。 Changes: - device_error_code.h:defalut -> default - codegen_vector.cpp:occured/unsupport -> occurred/unsupported - operation_impl.cpp:interger -> integer - device_task_context.cpp:Inital -> Initial - directed_graph_util.h:lenght -> length - tune_sync_for_vf.cpp:falied -> failed(4 处) - graph_utils.h / expand_function.cpp:seperate -> separate - cube_process.cpp:invlid -> invalid - pil2ir.py:funtion -> function - test_dynamic_mm.cpp:intput -> input(4 处) Related Issues: #2908 See merge request: cann/pypto!5392 | 3 months ago | |
feat(pass): Extend InsertSync cluster sync adjust with CV syncs and force sync skip Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !6624 merge feat/vf-insert-sync-cluster-adjust into master feat(pass): Extend InsertSync cluster sync adjust with CV syncs and force sync skip Created-by: Catherie Commit-by: Catherie Merged-by: cann-robot Description: feat(pass): Extend InsertSync cluster sync adjust with CV syncs and force sync skip InsertSync 的 AdjustSyncByAtomicScope 此前只对 DAV_3510 上 VF fusion cluster 内的普通 SYNC_SRC/SYNC_DST 做 op 顺序调整。OOO 调度后双 AIV 核发射序列交错,跨核 CV 同步与 CV eventId 耗尽时的 force 同步兜底序列需要显式处理,在把 sync 挪到 cluster 边界的 同时保证 cluster op 序列的正确性。 Changes: - CV 同步 op(OP_CV_SYNC_SRC/DST)与普通 sync 一起挪动到 VF cluster 边界 - cluster 窗口内出现 force 同步兜底序列或同核外部 scope op 时,整簇跳过调整 - 前序处理直接跳过用户设置的 atomic_scope,只处理框架生成的 VF fusion cluster - InsertSync 记录其创建的 force 同步 op 并传入 AdjustSyncByAtomicScope - 新增 UT 用例:CV 同步挪动、配对 sync 拒绝、force 同步跳过、跨核 op 交错、用户 scope 跳过 Related Issues: #3466 See merge request: cann/pypto!6624 | 1 month ago | |
feat(pass): Add common CopyOpAttribute shape dimension check Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !5876 merge feat/copyop-shape-dimension-check into master feat(pass): Add common CopyOpAttribute shape dimension check Created-by: Catherie Commit-by: Catherie Merged-by: cann-robot Description: feat(pass): Add common CopyOpAttribute shape dimension check A CopyOpAttribute whose shape and rawShape have different dimensions is malformed. It previously slipped through PreGraph and only surfaced as obscure compile failures in later passes. This PR adds an early shape dimension check so such attributes fail fast with a clear error. Changes: - Add static Checker::CheckShapeForCopyOp as a pass-common check, alongside CheckDynAttrForView and CheckToDynOffsetForAssemble, reusable by all passes - Invoke it at the end of PreGraphProcess::RunOnFunction, after MergeViewAssemble, so attributes produced during the pass are also covered - Add UT CopyOpAttributeShapeRankMismatchIsRejected; full PreGraphTest and checker suites pass (115/115) issue: https://gitcode.com/cann/pypto/issues/3170 See merge request: cann/pypto!5876 | 2 months ago | |
feat(ir): merge redundant producer results in token cleanup Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !6115 merge merge_danglin into master feat(ir): merge redundant producer results in token cleanup Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 开启 AssembleNewLogicalTensor 后,ASSEMBLE 会产生新的 LogicalTensor version。部分后续构图场景中,ATOMIC_RMW 也可能产生同一 RawTensor 的多个结果版本。 当较早版本没有数据消费者,而后续兼容版本仍被使用时,保留多个结果 tensor 会造成冗余的 LogicalTensor 版本和数据依赖。 ## 修改内容 - 在 RemoveRedundantTokenPass 中新增 dangling producer result 合并逻辑。 - 在同一 SeqStmts 内,按 RawTensor 对单输出 TensorOp 结果分组。 - 将无数据消费者的较早结果,合并到后方第一个有数据消费者且 LogicalTensor 描述兼容的结果。 - 支持普通 TensorOp、ASSEMBLE 及 ATOMIC_RMW 输出结果的合并。 - 仅向后合并,不跨 If、For、While 的 SeqStmts 边界,避免引入反向依赖。 - 合并阶段不以写区或 token 作为门槛,也不主动删除 token;后续冗余 token 删除与未使用 token 清理继续负责 token 优化。 - 新增 atomic 多版本结果合并 UT,并更新重叠写场景的预期。 See merge request: cann/pypto!6115 | 2 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(ir): merge redundant producer results in token cleanup Co-authored-by: zhaojunhan<zhaojunhan1@huawei.com> # message auto-generated for no-merge-commit merge: !6115 merge merge_danglin into master feat(ir): merge redundant producer results in token cleanup Created-by: zhaojunhan Commit-by: zhaojunhan Merged-by: cann-robot Description: ## 背景 开启 AssembleNewLogicalTensor 后,ASSEMBLE 会产生新的 LogicalTensor version。部分后续构图场景中,ATOMIC_RMW 也可能产生同一 RawTensor 的多个结果版本。 当较早版本没有数据消费者,而后续兼容版本仍被使用时,保留多个结果 tensor 会造成冗余的 LogicalTensor 版本和数据依赖。 ## 修改内容 - 在 RemoveRedundantTokenPass 中新增 dangling producer result 合并逻辑。 - 在同一 SeqStmts 内,按 RawTensor 对单输出 TensorOp 结果分组。 - 将无数据消费者的较早结果,合并到后方第一个有数据消费者且 LogicalTensor 描述兼容的结果。 - 支持普通 TensorOp、ASSEMBLE 及 ATOMIC_RMW 输出结果的合并。 - 仅向后合并,不跨 If、For、While 的 SeqStmts 边界,避免引入反向依赖。 - 合并阶段不以写区或 token 作为门槛,也不主动删除 token;后续冗余 token 删除与未使用 token 清理继续负责 token 优化。 - 新增 atomic 多版本结果合并 UT,并更新重叠写场景的预期。 See merge request: cann/pypto!6115 | 2 months ago | |
feat(pass): Combine Mva logic for token and legal Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !6840 merge code1008 into master feat(pass): Combine Mva logic for token and legal Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: ## 简要描述 MergeViewAssemble 此前按前端开关 create_new_logical_tensor(IRContext::AssembleNewLogicalTensor) 分发到两套完全独立的实现: - merge_view_assemble_legal.{h,cpp}:原始 legal 语义(966 行) - merge_view_assemble_token.{h,cpp}:token 语义(1843 行) 两套实现各自维护了一份几乎相同的链遍历(MergeViewChain / MergeAssembleChain)、 偏移累加(From/To offset)与"先记录后创建"的 append 逻辑,仅在停链门控、 链删除策略、token 依赖维护等少数分歧点不同。同一段逻辑双份维护, 修 bug 需要双处同步,长期存在行为漂移风险。 ## 改动内容 1. 将 legal 与 token 两套实现合并为统一的 MergeViewAssembleUtils (merge_view_assemble_utils.{h,cpp}): - 入口每次调用读取一次 tokenMode_,运行期间固定,选择本次语义; - 链遍历、偏移合并、消费者缓存(ConsumerCacheEntry)、两阶段 append 全程共用; - 分歧收敛为门控点: a. stopper 停链规则(view/assemble 两侧,保留 DAV_3510 例外); b. 链删除策略(legal 仅删链尾 vs token 按 side-consumer/survivor 精细删除); c. 收尾清理(EraseRedundantAssemble vs EraseOperations + DCE); d. token 依赖维护(收集/过滤/清理/重建/扫尾)。 2. 删除 merge_view_assemble_legal 与 merge_view_assemble_token 四个文件, 原 utils 的纯分发层一并移除。 See merge request: cann/pypto!6840 | 1 month ago | |
fix(pass): Fix log messages and coverage Co-authored-by: xujiayi1999<xujiayi28@huawei.com> # message auto-generated for no-merge-commit merge: !5807 merge fix-log-rectification into master fix(pass): Fix log messages and coverage Created-by: xujiayi1999 Commit-by: xujiayi1999 Merged-by: cann-robot Description: ### 变更概述 整改 Pass 模块日志中的拼写、语法及文案错误,提升日志准确性和可读性。 ### 主要变更 - 修正 candidate、partial、latest、Tarjan 等拼写错误。 - 修正日志中的语法错误及大小写错误。 - 修正输入/输出 datatype 日志描述。 - 修正 merge_src_dst_buffer 中日志参数传递错误。 - 补充 datatype 不匹配场景 UT,覆盖相关分支。 - 未调整表格中标记为“级别错配”的日志级别,保持本次修改范围聚焦于拼写和语法整改。 See merge request: cann/pypto!5807 | 2 months ago | |
feat(operation): support A5 adaptive in-place overwrite Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !6174 merge codex/scatter-upstream-master into master feat(operation): support A5 adaptive in-place overwrite Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: scatter 算子 现在阶段使用 标量来实现,A5 有了 simt 能力,可以提高效率。 同时,部分场景中,在ub 中使用 Tscatter 性能更有优势 。 我们相当于支持了 scatter 自适应的 ub 和 gm,并且在gm 场景中使用 simt 来提高性能。 单算子场景中,性能平均提升 4~5,在ub 场景中无劣化。 Related Issue: https://gitcode.com/cann/pypto/issues/3470 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6174 | 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 | |
fix(machine): Correct incorrect format specifiers in the log messages Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !1363 merge log into master fix(machine): Correct incorrect format specifiers in the log messages Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 修改使用错误的格式说明符 See merge request: cann/pypto!1363 | 8 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 8 months ago |