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_ALLGATHER_V_RING_FOR_910_93_EXECUTOR_H
12 : #define COLL_ALIGNED_ALLGATHER_V_RING_FOR_910_93_EXECUTOR_H
13 : #include "coll_aligned_all_gather_double_ring_for_910_93_executor.h"
14 : namespace hccl {
15 : class CollAlignedAllGatherVDoubleRingFor91093Executor : public CollAlignedAllGatherDoubleRingFor91093Executor {
16 : public:
17 : CollAlignedAllGatherVDoubleRingFor91093Executor(const HcclDispatcher dispatcher,
18 : std::unique_ptr<TopoMatcher> &topoMatcher);
19 0 : ~CollAlignedAllGatherVDoubleRingFor91093Executor() override = default;
20 :
21 : private:
22 : bool IsSmallData(const u64 size) override;
23 :
24 : u64 CalcDstMemOffset(const OpParam ¶m, u32 perDataSize, u64 inputMemSize) const override;
25 : HcomCollOpInfo GetHcomCollOpInfo(const OpParam ¶m, const ExecMem &execMem) const override;
26 : std::vector<Slice> PrepareSlicesL2(const OpParam ¶m, const SubCommInfo &level2CommInfo,
27 : const SubCommInfo &level1CommInfo, const SubCommInfo &level0CommInfo, u32 perDataSize,
28 : u64 inputMemSize) const override;
29 : std::vector<Slice> PrepareSlicesL1(const OpParam ¶m, const SubCommInfo &level2CommInfo,
30 : const SubCommInfo &level1CommInfo, const SubCommInfo &level0CommInfo, u32 perDataSize,
31 : u64 inputMemSize) const override;
32 : HcclResult PrepareSlicesL0(std::vector<std::vector<Slice>> &multRingsSlice, const OpParam ¶m,
33 : const SubCommInfo &level2CommInfo, const SubCommInfo &level1CommInfo, const SubCommInfo &level0CommInfo,
34 : u32 perDataSize, u64 inputMemSize) override;
35 : HcclResult PrepareUserMemSlices(std::vector<std::vector<Slice>> &userMemSlices,
36 : const std::vector<std::vector<Slice>> &multRingsSlice, const OpParam ¶m, const SubCommInfo &level2CommInfo,
37 : const SubCommInfo &level1CommInfo, const SubCommInfo &level0CommInfo, u32 perDataSize,
38 : u64 inputMemSize) override;
39 : };
40 :
41 : } // namespace hccl
42 :
43 : #endif
|