LCOV - code coverage report
Current view: top level - legacy/ascend950/framework/ccu - ccu_communicator.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 15 15
Test Date: 2026-08-04 10:52:23 Functions: 100.0 % 7 7

            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 "ccu_communicator.h"
      12              : #include "communicator_impl.h"
      13              : 
      14              : namespace Hccl {
      15              : 
      16           21 : CcuResPackMgr *CcuCommunicator::GetCcuResPackMgr()
      17              : {
      18           21 :     return &ccuResPackMgr;
      19              : }
      20              : 
      21           14 : CcuTransportGroupMgr *CcuCommunicator::GetCcuTransportGrpMgr()
      22              : {
      23           14 :     return &ccuTransportGroupMgr;
      24              : }
      25              : 
      26           53 : CcuJettyMgr *CcuCommunicator::GetCcuJettyMgr()
      27              : {
      28           53 :     return &ccuJettyMgr;
      29              : }
      30              : 
      31           17 : CcuTransportMgr *CcuCommunicator::GetCcuTransportMgr()
      32              : {
      33           17 :     return &ccuTransportMgr;
      34              : }
      35              : 
      36            7 : RegisteredCcuCtxMgr  *CcuCommunicator::GetRegisteredCcuCtxMgr()
      37              : {
      38            7 :     return &registeredCcuCtxMgr;
      39              : }
      40              : 
      41            4 : int32_t CcuCommunicator::GetDeviceLogicId() const
      42              : {
      43            4 :     return devLogicId;
      44              : }
      45              : 
      46            3 : void CcuCommunicator::AcceleratorFallback() const
      47              : {
      48            3 :     comm->AcceleratorFallback();
      49            1 : }
      50              : 
      51              : } // namespace Hccl
        

Generated by: LCOV version 2.0-1