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_v2_all_to_all_sole_executor.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 1 0
Test Date: 2026-08-18 17:47:01 Functions: 0.0 % 3 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_V2_ALL_TO_ALL_SOLE_EXECUTOR_H
      12              : #define HCCLV2_INS_V2_ALL_TO_ALL_SOLE_EXECUTOR_H
      13              : #include "ins_coll_alg_base.h"
      14              : 
      15              : namespace Hccl {
      16              : template <typename AlgTopoMatch, typename InsAlgTemplate>
      17              : class InsV2AlltoAllSoleExecutor : public InsCollAlgBase {
      18              : public:
      19              :     explicit InsV2AlltoAllSoleExecutor();
      20              :     ~InsV2AlltoAllSoleExecutor() override;
      21              : 
      22            0 :     std::string Describe() const override { return "Instruction based AlltoAll Sole Executor."; }
      23              : 
      24              :     // AICPU 接口
      25              :     HcclResult Orchestrate(
      26              :         const AlgTopoInfo& topoInfo, const CollAlgOperator& op, const CollAlgParams& params, ConnectedLinkMgr* linkMgr,
      27              :         InsQuePtr insQue) override;
      28              :     // HOST 接口
      29              :     HcclResult Orchestrate(
      30              :         const RankGraph* rankGraph, const CollAlgOperator& op, const CollAlgParams& params, InsQuePtr insQue) override;
      31              : 
      32              :     HcclResult CalcResOffload(const RankGraph* rankGraph, const u64& dataSize, CollOffloadOpResReq& resReq) override;
      33              : 
      34              :     HcclResult CalcRes(const RankGraph* rankGraph, CollAlgResReq& algResReq) override;
      35              : 
      36              :     HcclResult CalNumBlocks(u32& numBlocks, u64 dataSize, u32 numBlocksLimit) override;
      37              : 
      38              : private:
      39              :     HcclResult InitCommInfo(const RankGraph* rankGraph);
      40              :     HcclResult InitCommInfo(const AlgTopoInfo& topoInfo);
      41              :     HcclResult CreateTemplates(std::shared_ptr<InsAlgTemplate>& algTemplatePtr);
      42              :     HcclResult InitParams(const CollAlgOperator& op, const CollAlgParams& params) override;
      43              :     HcclResult GetTemplateResRequest(
      44              :         const RankGraph* rankGraph, std::shared_ptr<InsAlgTemplate>& algTemplate, AlgTempResReq& tempResReq) const;
      45              :     HcclResult GetTemplateResRequest(
      46              :         ConnectedLinkMgr* linkMgr, std::shared_ptr<InsAlgTemplate>& algTemplate, AlgTempResReq& tempResReq) const;
      47              :     HcclResult OrchestrateLoop(std::shared_ptr<InsAlgTemplate> algTemplate);
      48              : 
      49              :     std::vector<RankId> virtRanks_;
      50              :     std::map<RankId, u32> virtRankMap_;
      51              :     ResLinks tempResLinks_;
      52              :     std::vector<InsQuePtr> tempInsQue_;
      53              :     std::vector<std::vector<RankId>> vTopo_;
      54              : };
      55              : } // namespace Hccl
      56              : 
      57              : #endif // HCCLV2_INS_V2_ALL_TO_ALL_SOLE_EXECUTOR_H
        

Generated by: LCOV version 2.0-1