LCOV - code coverage report
Current view: top level - legacy/ascend950/service/collective/alg/coll_alg_factory/alg_executor/ins_alg_executor/all_reduce - ins_all_reduce_sole_executor.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 2 0
Test Date: 2026-07-28 12:11:00 Functions: 0.0 % 6 0

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef HCCLV2_INS_ALL_REDUCE_SOLE_EXECUTOR_H
      12              : #define HCCLV2_INS_ALL_REDUCE_SOLE_EXECUTOR_H
      13              : #include "ins_coll_alg_base.h"
      14              : 
      15              : namespace Hccl {
      16              : 
      17              : template <typename AlgTopoMatch, typename InsAlgTemplate>
      18              : class InsAllReduceSoleExecutor : public InsCollAlgBase {
      19              : public:
      20              :     explicit InsAllReduceSoleExecutor();
      21              :     ~InsAllReduceSoleExecutor() override;
      22              : 
      23            0 :     std::string Describe() const override
      24              :     {
      25            0 :         return "Instruction based All Reduce Sole Executor.";
      26              :     }
      27              : 
      28              :     // HOST 接口
      29              :     HcclResult Orchestrate(const RankGraph *rankGraph, const CollAlgOperator &op, const CollAlgParams &params,
      30              :                           InsQuePtr insQue) override;
      31              :     // AICPU 接口
      32              :     HcclResult Orchestrate(const AlgTopoInfo &topoInfo, const CollAlgOperator &op, const CollAlgParams &params,
      33              :                              ConnectedLinkMgr *linkMgr, InsQuePtr insQue) override;
      34              : 
      35              :     HcclResult CalcResOffload(const RankGraph *rankGraph, const u64 &dataSize,
      36              :                               CollOffloadOpResReq &resReq) override;
      37              :     HcclResult CalcRes(const RankGraph *rankGraph, CollAlgResReq &algResReq) override;
      38              : private:
      39              :     HcclResult OrchestrateCommon(InsAlgTemplate &tempAlg, const ParamPool &paramPool);
      40              : 
      41              :     std::vector<RankId>              virtRanks_;
      42              :     std::map<RankId, u32>            virtRankMap_; // map<virtRank, virtRankOrder>
      43              :     std::vector<std::vector<RankId>> vTopo_;
      44              : 
      45              :     std::vector<InsQuePtr> requiredQue_;
      46              :     ResLinks               tempResLinks_;
      47              : };
      48              : 
      49              : } // namespace Hccl
      50              : 
      51              : #endif // HCCLV2_INS_ALL_REDUCE_SOLE_EXECUTOR_H
        

Generated by: LCOV version 2.0-1