LCOV - code coverage report
Current view: top level - legacy/ascend910/algorithm/impl/coll_executor/coll_all_gather - coll_all_gather_mid_count_for_910_93_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 % 2 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 COLL_ALLGATHER_MID_COUNT_FOR_910_93_EXECUTOR_H
      12              : #define COLL_ALLGATHER_MID_COUNT_FOR_910_93_EXECUTOR_H
      13              : #include "coll_all_gather_executor.h"
      14              : namespace hccl {
      15              : class CollAllGatherMidCountFor91093Executor : public CollAllGatherExecutor {
      16              : public:
      17              :     explicit CollAllGatherMidCountFor91093Executor(
      18              :         const HcclDispatcher dispatcher, std::unique_ptr<TopoMatcher>& topoMatcher);
      19            0 :     ~CollAllGatherMidCountFor91093Executor() override = default;
      20              : 
      21              : private:
      22              :     /* *************** 资源计算 *************** */
      23              :     // HcclResult CalcStreamNum(u32& streamNum) override;
      24              :     HcclResult CalcCommInfo(std::vector<LevelNSubCommTransport>& opTransport) override;
      25              :     HcclResult CalcTransportMemType(TransportMemType& inputType, TransportMemType& outputType) const;
      26              :     HcclResult CalcLevel1CommInfo(
      27              :         TransportMemType inputType, TransportMemType outputType,
      28              :         std::vector<LevelNSubCommTransport>& opTransport) override;
      29              :     HcclResult CalcLevel2CommInfo(
      30              :         TransportMemType inputType, TransportMemType outputType,
      31              :         std::vector<LevelNSubCommTransport>& opTransport) override;
      32              : 
      33              :     /* *************** 算法编排 *************** */
      34              :     u64 CalcLoopMaxCount(const u64 cclBuffSize, const u32 unitSize) override;
      35              :     u64 CalcDstMemOffset(const OpParam& param, u64 inputMemSize) const;
      36              :     HcclResult PrepareL2DataSlices(
      37              :         const OpParam& param, const SubCommInfo& level1CommInfo, const SubCommInfo& level2CommInfo, u64 inputMemSize,
      38              :         std::vector<Slice>& dataSlices) const;
      39              :     HcclResult RunLevel2ByNHR(
      40              :         const OpParam& param, ExecMem& execMem, SubCommInfo& level1CommInfo, SubCommInfo& level2CommInfo) const;
      41              :     HcclResult PrepareL1DataSlices(
      42              :         const OpParam& param, const SubCommInfo& level1CommInfo, const SubCommInfo& level2CommInfo, u64 inputMemSize,
      43              :         u32 moduleId, std::vector<Slice>& dataSlices) const;
      44              :     HcclResult
      45              :     RunLevel1ByNHR(const OpParam& param, ExecMem& execMem, SubCommInfo& level1CommInfo, SubCommInfo& level2CommInfo);
      46              :     HcclResult KernelRun(const OpParam& param, ExecMem& execMem) override;
      47              : };
      48              : 
      49              : } // namespace hccl
      50              : 
      51              : #endif
        

Generated by: LCOV version 2.0-1