LCOV - code coverage report
Current view: top level - legacy/ascend950/service/collective/alg/coll_alg_factory/alg_executor/ins_alg_executor/all_to_all - ins_all_to_all_sole_executor.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 2 0
Test Date: 2026-08-04 10:52:23 Functions: 0.0 % 7 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_TO_ALL_SOLE_EXECUTOR
      12              : #define HCCLV2_INS_ALL_TO_ALL_SOLE_EXECUTOR
      13              : 
      14              : #include "ins_temp_all_to_all_mesh.h"
      15              : #include "ccu_temp_half_alltoallv_mesh_1D.h"
      16              : #include "ins_coll_alg_base.h"
      17              : #include "topo_match_mesh.h"
      18              : #include "topo_match_concurr_mesh.h"
      19              : #include "instruction.h"
      20              : 
      21              : namespace Hccl {
      22              : 
      23              : template <typename AlgTopoMatch, typename InsAlgTemplate> class InsAlltoAllSoleExecutor : public InsCollAlgBase {
      24              : public:
      25              :     explicit InsAlltoAllSoleExecutor();
      26              :     ~InsAlltoAllSoleExecutor() override;
      27              : 
      28            0 :     std::string Describe() const override
      29              :     {
      30            0 :         return "Instruction based Alltoall Mesh Executor.";
      31              :     }
      32              : 
      33              :     HcclResult CalcResOffload(const RankGraph *rankGraph, const u64 &dataSize,
      34              :                               CollOffloadOpResReq &resReq) override;
      35              :     HcclResult Orchestrate(const RankGraph *rankGraph, const CollAlgOperator &op, const CollAlgParams &params,
      36              :                           InsQuePtr insQue) override;   
      37              :     HcclResult CalcRes(const RankGraph *rankGraph, CollAlgResReq &algResReq) override;
      38              : 
      39              :     HcclResult Orchestrate(const AlgTopoInfo &topoInfo, const CollAlgOperator &op, const CollAlgParams &params,
      40              :                              ConnectedLinkMgr *linkMgr, InsQuePtr insQue) override;
      41              : 
      42              : private:
      43              :     HcclResult OrchestrateOpbase(InsAlgTemplate &tempAlg);
      44              :     HcclResult InitParams(const CollAlgOperator &op, const CollAlgParams &params) override;
      45              : 
      46              :     std::vector<RankId>              virtRanks_;
      47              :     std::map<RankId, u32>            virtRankMap_; // map<virtRank, virtRankOrder>
      48              :     std::vector<std::vector<RankId>> vTopo_;
      49              : 
      50              :     std::vector<InsQuePtr> requiredQue_;
      51              :     ResLinks               tempResLinks_;
      52              :     A2ASendRecvInfo localSendRecvInfo_;
      53              :     DataType sendType_;
      54              :     DataType recvType_;
      55              :     u32 concurrentSendRecvNum_{0};
      56              : };
      57              : 
      58              : } // namespace Hccl
      59              : 
      60              : #endif // HCCLV2_INS_ALL_TO_ALL_SOLE_EXECUTOR
        

Generated by: LCOV version 2.0-1