| Files | Last commit | Last update |
|---|---|---|
test(machine): Supplement machine UT test cases_3. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5075 merge ut_3 into master test(machine): Supplement machine UT test cases_3. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: machine 相关内容ut补充 See merge request: cann/pypto!5075 | 4 months ago | |
feat(platform): Use aclrtGetDeviceInfo to get aicpu cnt Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !4844 merge master into master feat(platform): Use aclrtGetDeviceInfo to get aicpu cnt Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: feat(platform): Use AmlDeviceGetCpuInfo to get aicpu cnt See merge request: cann/pypto!4844 | 4 months ago | |
feat(operation): New Operation Pack And Unpack Co-authored-by: 刘奕哲<liuyizhe6@huawei.com> # message auto-generated for no-merge-commit merge: !4998 merge pack into master feat(operation): New Operation Pack And Unpack Created-by: Creeeeper Commit-by: 刘奕哲 Merged-by: cann-robot Description: ## 描述 添加新算子Pack和UnPack分别用于打包和解包tile块 ## 测试 A2和A5上完成泛化用例测试 ## 关联Issue [#2699](https://gitcode.com/cann/pypto/issues/2699) ## 类型标签 - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: See merge request: cann/pypto!4998 | 4 months ago | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 months ago | |
fix(interpreter): Optimize the admission logic of the mix logic within the interpreter component Co-authored-by: Immutable01<gaoqiancheng@huawei.com> # message auto-generated for no-merge-commit merge: !5105 merge 0727_mix into master fix(interpreter): Optimize the admission logic of the mix logic within the interpreter component Created-by: Immutable01 Commit-by: Immutable01 Merged-by: cann-robot Description: 确保只在开启mix后精度工具才会走入mix通路 See merge request: cann/pypto!5105 | 4 months ago | |
refactor(build): Decouple device cross-compilation into standalone CMake project Co-authored-by: wangmingjun<wangmingjun13@huawei.com> # message auto-generated for no-merge-commit merge: !5015 merge device-compile into master refactor(build): Decouple device cross-compilation into standalone CMake project Created-by: hwwangmingjun Commit-by: wangmingjun Merged-by: cann-robot Description: refactor(build): Decouple device cross-compilation into standalone CMake project Host 和 Device 目标需要使用不同的编译工具链。原有构建方式将两者放在同一个 CMake 工程中,导致依赖关系和编译配置相互耦合。本次修改将 Device 交叉编译拆分为独立的 CMake 工 程,并将其产物接入现有的编译、测试和打包流程。 主要修改: - 新增独立的 Device CMake 工程,并将其注册为 cann_device 外部工程 - 独立交叉编译和打包 tile_fwk_server、pypto_ctrl_server - 从 Host CMake 构建图中移除 Device 子目录及相关目标依赖 - 在 build.sh、build_ci.py 和 setuptools 的 NPU 构建流程中显式构建 Device 产物 - 将 Device 安装包解压到 Wheel 暂存目录和 C++ 测试输出目录 - 兼容未注册 cann_device 目标的多仓联合构建场景 - 在构建流程中传递 Backend 类型,区分 NPU 和 Cost Model 打包流程 - 支持通过 PYPTO_THIRD_PARTY_PATH 环境变量指定 CI 三方依赖目录 - 统一使用 CANN 提供的 securec 包及其 c_sec 目标 [#2573](https://gitcode.com/cann/pypto/issues/2573) See merge request: cann/pypto!5015 | 4 months ago | |
feat(operator): Delete unused operator ut code Co-authored-by: congqiannan<congqiannan@huawei.com> # message auto-generated for no-merge-commit merge: !4993 merge master into master feat(operator): Delete unused operator ut code Created-by: congqiannan Commit-by: congqiannan Merged-by: cann-robot Description: feat(operator): Delete unused operator ut code See merge request: cann/pypto!4993 | 4 months ago | |
perf(pass): Use LIGHTWEIGHT sort and skip unnecessary DCE for tile graph passes Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !5011 merge perf/lightweight-sort-dce into master perf(pass): Use LIGHTWEIGHT sort and skip unnecessary DCE for tile graph passes Created-by: Catherie Commit-by: Catherie Merged-by: cann-robot Description: ## 优化背景 以 run_conv_case.py(3D bf16 Conv,205,913 Ops)为基准,多个 Tile Graph Pass 存在严重编译性能问题。根因: 1. **GENERAL 排序开销巨大**:Function::Operations() 在 sorted_==false 时隐式触发 SortOperations(GENERAL),对 206K ops 耗时 ~51s/次。多个 Pass 内部多次调用导致大量耗时。 2. **无条件 DCE**:EliminateDeadOperation 内部 sortAfterErase=true 再次触发 GENERAL 排序,即使没有 op 被删除。 该算子具有高 fanin/fanout 漏斗结构(magic=143: 32000 producers × 8000 consumers)。 ## 性能数据 | Pass | 优化前 | 优化后 | 提升 | |------|--------|--------|------| | RemoveRedundantOp | 168.58s | 3.18s | 53x | | ProcessAtomic | 236.77s | 0.03s | 7892x | | InferDiscontinuousInput | 252s+(超时) | 0.40s | 630x+ | | CommonOperationEliminate | - | 达标 | - | ## 修改内容 ### 1. Function 接口扩展(function.h / function.cpp) - Operations 和 EraseOperations 新增 SortOperationsMode mode 参数,默认 GENERAL 向后兼容 - 调用方可显式指定 LIGHTWEIGHT 避免 GENERAL 排序开销 ### 2. DeadOperationEliminator 改造(dead_operation_eliminate.cpp) - EliminateOperation 内部统一使用 LIGHTWEIGHT 排序 - EliminateDeadOperationBackward 标记阶段使用 Operations(false) 避免触发排序 - 对外接口不变,所有调用方自动受益 - 安全性:LIGHTWEIGHT 不支持 operationGroups_,但 Tile Graph Pass 阶段为空(split_reshape.cpp/assign_memory_type.cpp 有先例) ### 3. RemoveRedundantOp(remove_redundant_op.cpp) - 入口 SortOperations(LIGHTWEIGHT) 确保拓扑序 - ProcessReshape/ProcessViewAssemble/RemoveDummyOp 跟踪 anyRemoved 标志,无删除时跳过 DCE ### 4. ProcessAtomic(process_atomic.cpp) - EliminateReduceAcc/EliminateAtomicRMW 使用 Operations(true, LIGHTWEIGHT) + 跟踪 anyDeleted 跳过无用 DCE - EliminateAtomicRMW 空列表提前返回 - EraseOperations 显式指定 LIGHTWEIGHT ### 5. InferDiscontinuousInput(infer_discontinuous_input.cpp / .h) - BFS 队列 + 入度表改为线性遍历(tensorProducers_ 递减与处理顺序无关) - std::map → std::unordered_map,std::set → std::unordered_set - 使用 Operations(true, LIGHTWEIGHT) 避免 GENERAL 排序 ### 6. CommonOperationEliminateUtils(common_operation_eliminate_utils.cpp) - 跟踪 anyDeleted 标志,无删除时跳过 EraseOperations + DCE ## UT 验证 | 测试套件 | 结果 | |---------|------| | RemoveRedundantOpTest | ✅ 全部通过 | | GraphPartitionTest | ✅ 全部通过 | | CommonOperationEliminateTest | ✅ 全部通过 | | InferDiscontinuousInputTest | ✅ 全部通过 | | ProcessAtomicTest | ✅ 全部通过 | ## Issue https://gitcode.com/cann/pypto/issues/2685 See merge request: cann/pypto!5011 | 4 months ago | |
feat(platform): Use aclrtGetDeviceInfo to get aicpu cnt Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !4844 merge master into master feat(platform): Use aclrtGetDeviceInfo to get aicpu cnt Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: feat(platform): Use AmlDeviceGetCpuInfo to get aicpu cnt See merge request: cann/pypto!4844 | 4 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(machine): Add tile_fwk_adapter and adjust tile_fwk_runtime to tile_fwk_adapter Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !2296 merge br_adapter into master feat(machine): Add tile_fwk_adapter and adjust tile_fwk_runtime to tile_fwk_adapter Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 1、新增adapter组件,对接runtime,acl,hccl,msprof和drv 2、runtime组件已有调用cann的接口全部调用adapter接口 See merge request: cann/pypto!2296 | 7 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 7 months ago |