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 :
12 : #include "hccl_comm_pub.h"
13 : #include "hccl_communicator.h"
14 :
15 : namespace hccl {
16 0 : HcclResult hcclComm::RegistTaskAbortHandler() const
17 : {
18 0 : return HCCL_SUCCESS;
19 : }
20 :
21 0 : HcclResult hcclComm::UnRegistTaskAbortHandler() const
22 : {
23 0 : return HCCL_SUCCESS;
24 : }
25 :
26 0 : HcclResult hcclComm::GetOneSidedService(IHcclOneSidedService** service)
27 : {
28 0 : return HCCL_SUCCESS;
29 : }
30 0 : HcclResult hcclComm::InitOneSidedServiceNetDevCtx(u32 remoteRankId)
31 : {
32 0 : return HCCL_SUCCESS;
33 : }
34 0 : HcclResult hcclComm::OneSidedServiceStartListen(NicType nicType,HcclNetDevCtx netDevCtx)
35 : {
36 0 : return HCCL_SUCCESS;
37 : }
38 0 : HcclResult hcclComm::GetOneSidedServiceDevIpAndPort(NicType nicType, HcclIpAddress& ipAddress, u32& port)
39 : {
40 0 : return HCCL_SUCCESS;
41 : }
42 0 : HcclResult hcclComm::DeinitOneSidedService()
43 : {
44 0 : return HCCL_SUCCESS;
45 : }
46 :
47 0 : HcclResult hcclComm::RegisterCommUserMem(void* addr, u64 size, void **handle)
48 : {
49 0 : return HCCL_SUCCESS;
50 : }
51 :
52 0 : HcclResult hcclComm::DeregisterCommUserMem(void* handle)
53 : {
54 0 : return HCCL_SUCCESS;
55 : }
56 :
57 0 : HcclResult hcclComm::ExchangeCommUserMem(void* handle, std::vector<u32>& peerRanks)
58 : {
59 0 : return HCCL_SUCCESS;
60 : }
61 :
62 0 : HcclResult hcclComm::SetIndependentOpConfig(const CommConfig &commConfig, const RankTable_t &rankTable)
63 : {
64 0 : return HCCL_SUCCESS;
65 : }
66 :
67 0 : HcclResult hcclComm::InitIndependentOp()
68 : {
69 0 : return HCCL_SUCCESS;
70 : }
71 :
72 0 : HcclResult hcclComm::PrepareChannelMem(const std::string &tag, TransportIOMem &transMem)
73 : {
74 0 : return HCCL_SUCCESS;
75 : }
76 0 : HcclResult hcclComm::IndOpTransportAlloc(const std::string &tag, OpCommTransport &opCommTransport, bool isAicpuModeEn)
77 : {
78 0 : return HCCL_SUCCESS;
79 : }
80 0 : HcclResult hcclComm::CommGetNetLayers(uint32_t **netLayers, uint32_t *netLayerNum)
81 : {
82 0 : return HCCL_SUCCESS;
83 : }
84 :
85 0 : HcclResult hcclComm::CommGetInstSizeByNetLayer(uint32_t netLayer, uint32_t *rankNum)
86 : {
87 0 : return HCCL_SUCCESS;
88 : }
89 :
90 0 : HcclResult hcclComm::CommGetInstTopoTypeByNetLayer(uint32_t netLayer, u32 *topoType)
91 : {
92 0 : return HCCL_SUCCESS;
93 : }
94 0 : HcclResult hcclComm::GetNetLayers(uint32_t **netLayers, uint32_t *netLayerNum)
95 : {
96 0 : return HCCL_SUCCESS;
97 : }
98 :
99 0 : HcclResult hcclComm::GetInstSizeByNetLayer(uint32_t netLayer, uint32_t *rankNum)
100 : {
101 0 : return HCCL_SUCCESS;
102 : }
103 :
104 0 : HcclResult hcclComm::GetInstTopoTypeByNetLayer(uint32_t netLayer, CommTopo *topoType)
105 : {
106 0 : return HCCL_SUCCESS;
107 : }
108 :
109 0 : HcclResult hcclComm::GetInstRanksByNetLayer(uint32_t netLayer, uint32_t **rankList, uint32_t *rankNum)
110 : {
111 0 : return HCCL_SUCCESS;
112 : }
113 :
114 0 : HcclResult hcclComm::GetInstSizeListByNetLayer(uint32_t netLayer, uint32_t **instSizeList, uint32_t *listSize)
115 : {
116 0 : return HCCL_SUCCESS;
117 : }
118 :
119 0 : HcclResult hcclComm::GetRankGraph(GraphType type, void **graph, uint32_t *len)
120 : {
121 0 : return HCCL_SUCCESS;
122 : }
123 :
124 0 : HcclResult hcclComm::GetLinks(uint32_t netLayer, uint32_t srcRank, uint32_t dstRank,
125 : CommLink **linkList, uint32_t *listSize)
126 : {
127 0 : return HCCL_SUCCESS;
128 : }
129 :
130 0 : HcclResult hcclComm::GetHeterogMode(HcclHeterogMode *mode)
131 : {
132 0 : return HCCL_SUCCESS;
133 : }
134 :
135 0 : HcclComm hcclComm::GetCommunicatorV2()
136 : {
137 0 : HCCL_ERROR("[HcclComm][GetCommunicatorV2]collComm_ is nullptr");
138 0 : return nullptr;
139 : }
140 :
141 0 : void hcclComm::BinaryUnLoad()
142 : {
143 0 : binHandle_ = nullptr;
144 0 : }
145 :
146 0 : HcclResult hcclComm::Resume()
147 : {
148 0 : if (!IsCommunicatorV2()) {
149 0 : CHK_RET(communicator_->Resume());
150 : }
151 0 : return HCCL_SUCCESS;
152 : }
153 :
154 : } // namespace hccl
155 :
|