LCOV - code coverage report
Current view: top level - legacy/ascend910/framework/communicator - hccl_comm_device.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 40 0
Test Date: 2026-08-17 10:19:35 Functions: 0.0 % 28 0

            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 "hccl_comm_pub.h"
      12              : #include "hccl_communicator.h"
      13              : 
      14              : namespace hccl {
      15            0 : HcclResult hcclComm::RegistTaskAbortHandler() const { return HCCL_SUCCESS; }
      16              : 
      17            0 : HcclResult hcclComm::UnRegistTaskAbortHandler() const { return HCCL_SUCCESS; }
      18              : 
      19            0 : HcclResult hcclComm::GetOneSidedService(IHcclOneSidedService** service) { return HCCL_SUCCESS; }
      20            0 : HcclResult hcclComm::InitOneSidedServiceNetDevCtx(u32 remoteRankId) { return HCCL_SUCCESS; }
      21            0 : HcclResult hcclComm::OneSidedServiceStartListen(NicType nicType, HcclNetDevCtx netDevCtx) { return HCCL_SUCCESS; }
      22            0 : HcclResult hcclComm::GetOneSidedServiceDevIpAndPort(NicType nicType, HcclIpAddress& ipAddress, u32& port)
      23              : {
      24            0 :     return HCCL_SUCCESS;
      25              : }
      26            0 : HcclResult hcclComm::DeinitOneSidedService() { return HCCL_SUCCESS; }
      27              : 
      28            0 : HcclResult hcclComm::RegisterCommUserMem(void* addr, u64 size, void** handle) { return HCCL_SUCCESS; }
      29              : 
      30            0 : HcclResult hcclComm::DeregisterCommUserMem(void* handle) { return HCCL_SUCCESS; }
      31              : 
      32            0 : HcclResult hcclComm::ExchangeCommUserMem(void* handle, std::vector<u32>& peerRanks) { return HCCL_SUCCESS; }
      33              : 
      34            0 : HcclResult hcclComm::SetIndependentOpConfig(const CommConfig& commConfig, const RankTable_t& rankTable)
      35              : {
      36            0 :     return HCCL_SUCCESS;
      37              : }
      38              : 
      39            0 : HcclResult hcclComm::InitIndependentOp() { return HCCL_SUCCESS; }
      40              : 
      41            0 : HcclResult hcclComm::PrepareChannelMem(
      42              :     const std::string& tag, TransportIOMem& transMem, const HcclMemHandle* memHandles, uint32_t memHandleNum)
      43              : {
      44            0 :     return HCCL_SUCCESS;
      45              : }
      46            0 : HcclResult hcclComm::IndOpTransportAlloc(
      47              :     const std::string& tag, OpCommTransport& opCommTransport, bool isAicpuModeEn, const HcclMemHandle* memHandles,
      48              :     uint32_t memHandleNum)
      49              : {
      50            0 :     return HCCL_SUCCESS;
      51              : }
      52            0 : HcclResult hcclComm::CommGetNetLayers(uint32_t** netLayers, uint32_t* netLayerNum) { return HCCL_SUCCESS; }
      53              : 
      54            0 : HcclResult hcclComm::CommGetInstSizeByNetLayer(uint32_t netLayer, uint32_t* rankNum) { return HCCL_SUCCESS; }
      55              : 
      56            0 : HcclResult hcclComm::CommGetInstTopoTypeByNetLayer(uint32_t netLayer, u32* topoType) { return HCCL_SUCCESS; }
      57            0 : HcclResult hcclComm::GetNetLayers(uint32_t** netLayers, uint32_t* netLayerNum) { return HCCL_SUCCESS; }
      58              : 
      59            0 : HcclResult hcclComm::GetInstSizeByNetLayer(uint32_t netLayer, uint32_t* rankNum) { return HCCL_SUCCESS; }
      60              : 
      61            0 : HcclResult hcclComm::GetInstTopoTypeByNetLayer(uint32_t netLayer, CommTopo* topoType) { return HCCL_SUCCESS; }
      62              : 
      63            0 : HcclResult hcclComm::GetInstRanksByNetLayer(uint32_t netLayer, uint32_t** rankList, uint32_t* rankNum)
      64              : {
      65            0 :     return HCCL_SUCCESS;
      66              : }
      67              : 
      68            0 : HcclResult hcclComm::GetInstSizeListByNetLayer(uint32_t netLayer, uint32_t** instSizeList, uint32_t* listSize)
      69              : {
      70            0 :     return HCCL_SUCCESS;
      71              : }
      72              : 
      73            0 : HcclResult hcclComm::GetRankGraph(GraphType type, void** graph, uint32_t* len) { return HCCL_SUCCESS; }
      74              : 
      75              : HcclResult
      76            0 : hcclComm::GetLinks(uint32_t netLayer, uint32_t srcRank, uint32_t dstRank, CommLink** linkList, uint32_t* listSize)
      77              : {
      78            0 :     return HCCL_SUCCESS;
      79              : }
      80              : 
      81            0 : HcclResult hcclComm::GetHeterogMode(HcclHeterogMode* mode) { return HCCL_SUCCESS; }
      82              : 
      83            0 : HcclComm hcclComm::GetCommunicatorV2()
      84              : {
      85            0 :     HCCL_ERROR("[HcclComm][GetCommunicatorV2]collComm_ is nullptr");
      86            0 :     return nullptr;
      87              : }
      88              : 
      89            0 : void hcclComm::BinaryUnLoad() { binHandle_ = nullptr; }
      90              : 
      91            0 : HcclResult hcclComm::Resume()
      92              : {
      93            0 :     if (!IsCommunicatorV2()) {
      94            0 :         CHK_RET(communicator_->Resume());
      95              :     }
      96            0 :     return HCCL_SUCCESS;
      97              : }
      98              : 
      99              : } // namespace hccl
        

Generated by: LCOV version 2.0-1