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_REDUCESCATTER_DOUBLE_RING_FOR_910_93_EXECUTOR_H
12 : #define COLL_ALIGNED_REDUCESCATTER_DOUBLE_RING_FOR_910_93_EXECUTOR_H
13 : #include "coll_reduce_scatter_ring_for_910_93_executor.h"
14 :
15 : namespace hccl {
16 : class CollAlignedReduceScatterDoubleRingFor91093Executor : public CollReduceScatterRingFor91093Executor {
17 : public:
18 : explicit CollAlignedReduceScatterDoubleRingFor91093Executor(
19 : const HcclDispatcher dispatcher, std::unique_ptr<TopoMatcher>& topoMatcher);
20 2 : ~CollAlignedReduceScatterDoubleRingFor91093Executor() override = default;
21 :
22 : private:
23 : /* *************** 算法编排 *************** */
24 : virtual HcclResult DoubleRingReduceScatter(
25 : const std::string& tag, DeviceMem inputMem, DeviceMem outputMem, const u64 count, const HcclDataType dataType,
26 : const HcclReduceOp reductionOp, const std::vector<std::vector<Slice>> multRingsSliceZero, Stream stream,
27 : s32 profStage, const u64 baseOffset = 0, const HcomCollOpInfo* opInfo = nullptr,
28 : const std::vector<std::vector<Slice>> multRingsUserMemSlice = std::vector<std::vector<Slice>>(0),
29 : const bool disableDMAReduce = false);
30 : HcclResult RunIntraSeverReduceScatter(
31 : const std::string& tag, DeviceMem& inputMem, DeviceMem& outputMem, const u64 count,
32 : const HcclDataType& dataType, const HcclReduceOp& reductionOp,
33 : const std::vector<std::vector<Slice>>& multRingsSliceZero, const 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 : const bool disableDMAReduce = false) override;
37 : };
38 :
39 : } // namespace hccl
40 :
41 : #endif
|