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

Generated by: LCOV version 2.0-1