| 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): Add pgo pass framework Co-authored-by: yinjie27_<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !7403 merge pgo-vf-init-origin into master feat(Pass): Add pgo pass framework Created-by: yinjie27_ Commit-by: yinjie27_ Merged-by: cann-robot Description: feat(Pass): Add pgo pass framework See merge request: cann/pypto!7403 | 24 days ago | |
fix(pass): Fix validation of producer-side data transfer view/slice nodes Co-authored-by: HWGG88<yanghongwei33@huawei.com> # message auto-generated for no-merge-commit merge: !7301 merge fix-producer-side-view-postcheck into master fix(pass): Fix validation of producer-side data transfer view/slice nodes Created-by: HWGG88 Commit-by: HWGG88 Merged-by: cann-robot Description: - 添加辅助函数识别生产者侧切片搬运操作 - 调整子图结束节点检查,允许合法的生产者侧搬运视图 - 保持对普通视图、未知路径及消费者侧搬运的边界约束 - 新增回归测试覆盖 token 依赖、按核拆分及原始内存类型判断 - 验证 VIEW/SLICE 在不同 NPU 架构下的后置检查与搬运指令转换一致性 See merge request: cann/pypto!7301 | 26 days 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 | |
fix(pass): Allow cascaded view reshape reorder before cast Co-authored-by: lihong130<lihong130@huawei.com> # message auto-generated for no-merge-commit merge: !7356 merge fix/gqa into master fix(pass): Allow cascaded view reshape reorder before cast Created-by: lihong130 Commit-by: lihong130 Merged-by: cann-robot Description: fix(pass): Allow cascaded view reshape reorder before cast **背景** 现有 view/reshape 重排要求 Reshape 的输出(可经 View 传递)必须被 matmul 消费(HasMatmulConsumerThroughView 判断)才允许重排,泛化性不足。incre_flash_attention_gqa 算子中存在 View->Reshape->Cast 类型的操作,重排后同样能取得性能收益,但受该条件限制无法触发重排。 **修改内容** 本 PR 去除"Reshape 之后必须带有 matmul op"的限制,使级联 View/Reshape 后接 Cast 的场景也能重排;同时将IsTargetMatmulOp改成使用统一的HasTargetMatmulOp进行判断。 Changes: - 删除 HasMatmulConsumerThroughView 及其在 TryRecordViewReshape 中的调用,去除 Reshape 输出必须被 matmul 消费的重排前提 - 将 IsTargetMatmulOp 合并进 HasTargetMatmulOp:避免matmul判断所使用的opcode不一致 - 新增 UT TestCascadedViewReshapeCastReorder,覆盖级联 View->View->Reshape->Cast 应重排的场景 See merge request: cann/pypto!7356 | 24 days 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 | |
fix(pass): Also drop write-only dangling tokens before ExpandFunction Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !7149 merge 1026_token into master fix(pass): Also drop write-only dangling tokens before ExpandFunction Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 在expandfunction前删除没有生产者也没有消费者的悬空token See merge request: cann/pypto!7149 | 29 days ago | |
fix(pass): Fix split reshape UB inference and parallel slice requirements Co-authored-by: zhaosenqiu<zhaosenqiu@huawei.com> # message auto-generated for no-merge-commit merge: !7397 merge amt-reshape-fix-3517 into master fix(pass): Fix split reshape UB inference and parallel slice requirements Created-by: zhaosenqiu Commit-by: zhaosenqiu Merged-by: cann-robot Description: fix(pass): Fix split reshape UB inference and parallel slice requirements ### 中文 仅修复 enable_slice=true 下 KeepSplitReshapeUb 的升级判断和旁路输入需求: - **后继 SLICE 目标尚未推导或已是 DDR**:原先可能先将 RESHAPE 升级为 UB,随后产生 UB→DDR 的 SLICE。现在先推导后继目标,仅允许 UB 或原有平台规则支持的 L1;DDR 分支(包括 DDR/UB 混合分支)拒绝升级。 - **输入上的旁路 SLICE**:原先 UNKNOWN 目标可能绕过检查;现在先推导旁路目标,去 DDR 或 L1 时拒绝整个 RESHAPE 升级。RESHAPE 后继的合法 L1 判断保持原规则。 - **旁路输出为 UB**:原先输入 toBeMap 仍要求 DDR,转换阶段会插入额外 CONTRACT,形成 UB→DDR→UB 并影响后续切图。现在仅在全部升级条件通过后,将旁路输入需求同步为 UB;容量、生产者路径或对齐等检查失败时保留原需求。 - 补充 UT,覆盖未知/已知 DDR、混合后继、DDR/L1 旁路、纯 UB、无 DDR 往返、升级失败保留需求及平台 L1 规则。enable_slice=false 路径不变。 ### English Fix UB promotion and parallel slice input requirements in KeepSplitReshapeUb with enable_slice=true: - **Unresolved or DDR successor targets:** Previously, RESHAPE could be promoted before SLICE inference and leave a UB→DDR slice. Infer successor targets first and accept only UB or L1 supported by the existing platform rules; reject DDR and mixed DDR/UB successors. - **Parallel slices on the reshape input:** Previously, UNKNOWN targets could bypass the guard. Infer these targets first and reject the reshape promotion when a parallel slice targets DDR or L1, while retaining the existing L1 rules for reshape successors. - **UB parallel slices:** Previously, their input toBeMap still required DDR, inserting an extra CONTRACT and a UB→DDR→UB round trip that affected graph partitioning. Update the requirement to UB only after all promotion checks succeed; preserve it when capacity, producer-path or alignment checks reject promotion. - Add UT coverage for unresolved/known DDR targets, mixed successors, DDR/L1 parallel branches, pure UB paths, removal of DDR round trips, rejected promotions and platform L1 rules. The enable_slice=false path is unchanged. Related Issues: #3517 See merge request: cann/pypto!7397 | 23 days ago | |
feat(Pass): Add pgo pass framework Co-authored-by: yinjie27_<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !7403 merge pgo-vf-init-origin into master feat(Pass): Add pgo pass framework Created-by: yinjie27_ Commit-by: yinjie27_ Merged-by: cann-robot Description: feat(Pass): Add pgo pass framework See merge request: cann/pypto!7403 | 24 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 24 days ago | ||
| 26 days ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 24 days ago | ||
| 2 months ago | ||
| 29 days ago | ||
| 23 days ago | ||
| 24 days ago |