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

Generated by: LCOV version 2.0-1