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 "bare_notify.h"
11 :
12 : namespace hccl {
13 :
14 0 : BareNotify::BareNotify(NotifyType notifyType) : NotifyBase(notifyType) {}
15 :
16 0 : BareNotify::BareNotify(NotifyType notifyType, HcclNotifyInfo notifyInfo) : NotifyBase(notifyType, notifyInfo) {}
17 :
18 0 : BareNotify::~BareNotify()
19 : {
20 0 : (void)Close();
21 0 : (void)Destroy();
22 0 : }
23 :
24 0 : HcclResult BareNotify::Open() { return HCCL_SUCCESS; }
25 :
26 0 : HcclResult BareNotify::Close() { return HCCL_SUCCESS; }
27 :
28 0 : HcclResult BareNotify::Wait(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 timeOut) { return HCCL_SUCCESS; }
29 :
30 0 : HcclResult BareNotify::Post(Stream& stream, HcclDispatcher dispatcher, s32 stage) { return HCCL_SUCCESS; }
31 :
32 : HcclResult
33 0 : BareNotify::Wait(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 timeOut, u32 userRank, u32 remoteUserRank)
34 : {
35 0 : return Wait(stream, dispatcher, stage, timeOut);
36 : }
37 :
38 0 : HcclResult BareNotify::Wait(Stream& stream, u32 timeOut) { return HCCL_SUCCESS; }
39 :
40 0 : HcclResult BareNotify::Post(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 remoteUserRank)
41 : {
42 0 : return Post(stream, dispatcher, stage);
43 : }
44 :
45 0 : HcclResult BareNotify::Post(Stream& stream) { return HCCL_SUCCESS; }
46 :
47 0 : HcclResult BareNotify::SetIpc() { return HCCL_SUCCESS; }
48 :
49 0 : HcclResult BareNotify::Grant(s64 recvId) { return HCCL_SUCCESS; }
50 :
51 0 : HcclResult BareNotify::Alloc() { return HCCL_SUCCESS; }
52 :
53 0 : HcclResult BareNotify::Destroy() { return HCCL_SUCCESS; }
54 :
55 0 : void BareNotify::Break() { return; }
56 : } // namespace hccl
|