LCOV - code coverage report
Current view: top level - legacy/ascend910/platform/resource/notify - bare_notify.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 23 0
Test Date: 2026-08-18 17:47:01 Functions: 0.0 % 17 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 "bare_notify.h"
      12              : 
      13              : namespace hccl {
      14              : 
      15            0 : BareNotify::BareNotify(NotifyType notifyType) : NotifyBase(notifyType) {}
      16              : 
      17            0 : BareNotify::BareNotify(NotifyType notifyType, HcclNotifyInfo notifyInfo) : NotifyBase(notifyType, notifyInfo) {}
      18              : 
      19            0 : BareNotify::~BareNotify()
      20              : {
      21            0 :     (void)Close();
      22            0 :     (void)Destroy();
      23            0 : }
      24              : 
      25            0 : HcclResult BareNotify::Open() { return HCCL_SUCCESS; }
      26              : 
      27            0 : HcclResult BareNotify::Close() { return HCCL_SUCCESS; }
      28              : 
      29            0 : HcclResult BareNotify::Wait(
      30              :     [[maybe_unused]] Stream& stream, [[maybe_unused]] HcclDispatcher dispatcher, [[maybe_unused]] s32 stage,
      31              :     [[maybe_unused]] u32 timeOut)
      32              : {
      33            0 :     return HCCL_SUCCESS;
      34              : }
      35              : 
      36            0 : HcclResult BareNotify::Post(
      37              :     [[maybe_unused]] Stream& stream, [[maybe_unused]] HcclDispatcher dispatcher, [[maybe_unused]] s32 stage)
      38              : {
      39            0 :     return HCCL_SUCCESS;
      40              : }
      41              : 
      42            0 : HcclResult BareNotify::Wait(
      43              :     Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 timeOut, [[maybe_unused]] u32 userRank,
      44              :     [[maybe_unused]] u32 remoteUserRank)
      45              : {
      46            0 :     return Wait(stream, dispatcher, stage, timeOut);
      47              : }
      48              : 
      49            0 : HcclResult BareNotify::Wait([[maybe_unused]] Stream& stream, [[maybe_unused]] u32 timeOut) { return HCCL_SUCCESS; }
      50              : 
      51            0 : HcclResult BareNotify::Post(Stream& stream, HcclDispatcher dispatcher, s32 stage, [[maybe_unused]] u32 remoteUserRank)
      52              : {
      53            0 :     return Post(stream, dispatcher, stage);
      54              : }
      55              : 
      56            0 : HcclResult BareNotify::Post([[maybe_unused]] Stream& stream) { return HCCL_SUCCESS; }
      57              : 
      58            0 : HcclResult BareNotify::SetIpc() { return HCCL_SUCCESS; }
      59              : 
      60            0 : HcclResult BareNotify::Grant([[maybe_unused]] s64 recvId) { return HCCL_SUCCESS; }
      61              : 
      62            0 : HcclResult BareNotify::Alloc() { return HCCL_SUCCESS; }
      63              : 
      64            0 : HcclResult BareNotify::Destroy() { return HCCL_SUCCESS; }
      65              : 
      66            0 : void BareNotify::Break() { return; }
      67              : } // namespace hccl
        

Generated by: LCOV version 2.0-1