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 ALL_GATHER_V_GRAPH_PIPELINE_PUB_H
12 : #define ALL_GATHER_V_GRAPH_PIPELINE_PUB_H
13 :
14 : #include <vector>
15 : #include <memory>
16 : #include <hccl/hccl_types.h>
17 : #include "hccl/base.h"
18 : #include "externalinput_pub.h"
19 : #include "mem_device_pub.h"
20 : #include "stream_pub.h"
21 : #include "all_gather_v_pipeline_pub.h"
22 :
23 : namespace hccl {
24 : class AllGatherVGraphPipeline : public AllGatherVPipeline {
25 : public:
26 : explicit AllGatherVGraphPipeline(const HcclDispatcher dispatcher);
27 0 : ~AllGatherVGraphPipeline() override = default;
28 : HcclResult RunAsync() override;
29 :
30 : private:
31 : HcclResult ExecInterServer(u32 step);
32 : HcclResult ExecIntraServer(u32 step);
33 : };
34 : } // namespace hccl
35 :
36 : #endif /* ALL_GATHER_PIPELINE_PUB_H */
|