LCOV - code coverage report
Current view: top level - legacy/ascend910/algorithm/impl/coll_executor/coll_all_reduce - coll_aligned_all_reduce_double_ring_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_ALIGNED_ALL_REDUCE_DOUBLE_RING_FOR_910_93_EXECUTOR_H
      12              : #define COLL_ALIGNED_ALL_REDUCE_DOUBLE_RING_FOR_910_93_EXECUTOR_H
      13              : 
      14              : #include "coll_all_reduce_ring_for_910_93_executor.h"
      15              : 
      16              : namespace hccl {
      17              : class CollAlignedAllReduceDoubleRingFor91093Executor : public CollAllReduceRingFor91093Executor {
      18              : public:
      19              :     CollAlignedAllReduceDoubleRingFor91093Executor(
      20              :         const HcclDispatcher dispatcher, std::unique_ptr<TopoMatcher>& topoMatcher);
      21            0 :     ~CollAlignedAllReduceDoubleRingFor91093Executor() override = default;
      22              : 
      23              : private:
      24              :     /* *************** 算法编排 *************** */
      25              :     HcclResult DoubleRingReduceScatter(
      26              :         const std::string& tag, DeviceMem inputMem, DeviceMem outputMem, const u64 count, const HcclDataType dataType,
      27              :         const HcclReduceOp reductionOp, const std::vector<std::vector<Slice>> multRingsSliceZero, Stream stream,
      28              :         s32 profStage, const u64 baseOffset = 0, const HcomCollOpInfo* opInfo = nullptr,
      29              :         const std::vector<std::vector<Slice>> multRingsUserMemSlice = std::vector<std::vector<Slice>>(0),
      30              :         const bool disableDMAReduce = false);
      31              :     HcclResult DoubleRingAllGather(
      32              :         const std::string& tag, DeviceMem inputMem, DeviceMem outputMem, const u64 count, const HcclDataType dataType,
      33              :         const std::vector<std::vector<Slice>> multRingsSliceZero, Stream stream, s32 profStage,
      34              :         const u64 baseOffset = 0, const HcomCollOpInfo* opInfo = nullptr,
      35              :         const std::vector<std::vector<Slice>> multRingsUserMemSlice = std::vector<std::vector<Slice>>(0));
      36              :     HcclResult RunIntraSeverReduceScatter(
      37              :         const std::string& tag, DeviceMem& inputMem, DeviceMem& outputMem, const u64 count,
      38              :         const HcclDataType& dataType, const HcclReduceOp& reductionOp,
      39              :         const std::vector<std::vector<Slice>>& multRingsSliceZero, const Stream& stream, s32 profStage,
      40              :         const u64 baseOffset = 0, const HcomCollOpInfo* opInfo = nullptr,
      41              :         const std::vector<std::vector<Slice>>& multRingsUserMemSlice = std::vector<std::vector<Slice>>(0),
      42              :         const bool disableDMAReduce = false) override;
      43              :     HcclResult RunIntraSeverAllGather(
      44              :         const std::string& tag, DeviceMem& inputMem, DeviceMem& outputMem, const u64 count,
      45              :         const HcclDataType& dataType, const std::vector<std::vector<Slice>>& multRingsSliceZero, const Stream& stream,
      46              :         s32 profStage, const u64 baseOffset = 0, const HcomCollOpInfo* opInfo = nullptr,
      47              :         const std::vector<std::vector<Slice>>& multRingsUserMemSlice = std::vector<std::vector<Slice>>(0)) override;
      48              : };
      49              : 
      50              : } // namespace hccl
      51              : 
      52              : #endif
        

Generated by: LCOV version 2.0-1