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 : #include "topoinfo_ranktable_partition.h"
12 :
13 : #include <vector>
14 : #include <string>
15 : #include <unordered_map>
16 : #include <unordered_set>
17 :
18 : namespace hccl {
19 :
20 0 : TopoinfoRanktablePartition::TopoinfoRanktablePartition(
21 0 : hccl::HcclCommParams& globalParams, hccl::RankTable_t& globalRankTable)
22 0 : : globalParams_(globalParams),
23 0 : globalRankTable_(globalRankTable)
24 0 : {}
25 :
26 0 : TopoinfoRanktablePartition::~TopoinfoRanktablePartition() {}
27 :
28 0 : HcclResult TopoinfoRanktablePartition::GenerateSubRankTable(
29 : [[maybe_unused]] const uint32_t rankNum, [[maybe_unused]] const uint32_t* rankIds,
30 : [[maybe_unused]] hccl::RankTable_t& subRankTable)
31 : {
32 0 : return HCCL_E_NOT_SUPPORT;
33 : }
34 :
35 0 : HcclResult TopoinfoRanktablePartition::GenerateSubSuperPodId([[maybe_unused]] hccl::RankTable_t& subRankTable)
36 : {
37 0 : return HCCL_E_NOT_SUPPORT;
38 : }
39 :
40 0 : HcclResult TopoinfoRanktablePartition::GenerateSubParams(
41 : [[maybe_unused]] const hccl::RankTable_t& subRankTable, [[maybe_unused]] const uint32_t subCommRankId,
42 : [[maybe_unused]] hccl::HcclCommParams& subParams)
43 : {
44 0 : return HCCL_E_NOT_SUPPORT;
45 : }
46 :
47 0 : HcclResult TopoinfoRanktablePartition::GetRankTableStr(
48 : [[maybe_unused]] const hccl::RankTable_t& subRankTable, [[maybe_unused]] std::string& rankTableStr)
49 : {
50 0 : return HCCL_E_NOT_SUPPORT;
51 : }
52 :
53 0 : HcclResult TopoinfoRanktablePartition::TransformRankInfo(
54 : [[maybe_unused]] const RankTable_t& clusterInfo, [[maybe_unused]] nlohmann::json& perRankJson,
55 : [[maybe_unused]] u32 rankIndex)
56 : {
57 0 : return HCCL_E_NOT_SUPPORT;
58 : }
59 :
60 0 : HcclResult TopoinfoRanktablePartition::TransformServerList(
61 : [[maybe_unused]] const RankTable_t& clusterInfo, [[maybe_unused]] nlohmann::json& rankListJson)
62 : {
63 0 : return HCCL_E_NOT_SUPPORT;
64 : }
65 :
66 0 : HcclResult TopoinfoRanktablePartition::Struct2JsonRankTable(
67 : [[maybe_unused]] const RankTable_t& clusterInfo, [[maybe_unused]] const DevType deviceType,
68 : [[maybe_unused]] nlohmann::json& ClusterJson)
69 : {
70 0 : return HCCL_E_NOT_SUPPORT;
71 : }
72 : } // namespace hccl
|