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 : }
17 :
18 0 : BareNotify::BareNotify(NotifyType notifyType, HcclNotifyInfo notifyInfo)
19 0 : : NotifyBase(notifyType, notifyInfo)
20 : {
21 0 : }
22 :
23 0 : BareNotify::~BareNotify()
24 : {
25 0 : (void)Close();
26 0 : (void)Destroy();
27 0 : }
28 :
29 0 : HcclResult BareNotify::Open()
30 : {
31 0 : return HCCL_SUCCESS;
32 : }
33 :
34 0 : HcclResult BareNotify::Close()
35 : {
36 0 : return HCCL_SUCCESS;
37 : }
38 :
39 0 : HcclResult BareNotify::Wait(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 timeOut)
40 : {
41 0 : return HCCL_SUCCESS;
42 : }
43 :
44 0 : HcclResult BareNotify::Post(Stream& stream, HcclDispatcher dispatcher, s32 stage)
45 : {
46 0 : return HCCL_SUCCESS;
47 : }
48 :
49 0 : HcclResult BareNotify::Wait(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 timeOut,
50 : u32 userRank, u32 remoteUserRank)
51 : {
52 0 : return Wait(stream, dispatcher, stage, timeOut);
53 : }
54 :
55 0 : HcclResult BareNotify::Wait(Stream& stream, u32 timeOut)
56 : {
57 0 : return HCCL_SUCCESS;
58 : }
59 :
60 0 : HcclResult BareNotify::Post(Stream& stream, HcclDispatcher dispatcher, s32 stage, u32 remoteUserRank)
61 : {
62 0 : return Post(stream, dispatcher, stage);
63 : }
64 :
65 0 : HcclResult BareNotify::Post(Stream& stream)
66 : {
67 0 : return HCCL_SUCCESS;
68 : }
69 :
70 0 : HcclResult BareNotify::SetIpc()
71 : {
72 0 : return HCCL_SUCCESS;
73 : }
74 :
75 0 : HcclResult BareNotify::Grant(s64 recvId)
76 : {
77 0 : return HCCL_SUCCESS;
78 : }
79 :
80 0 : HcclResult BareNotify::Alloc()
81 : {
82 0 : return HCCL_SUCCESS;
83 : }
84 :
85 0 : HcclResult BareNotify::Destroy()
86 : {
87 0 : return HCCL_SUCCESS;
88 : }
89 :
90 0 : void BareNotify::Break()
91 : {
92 0 : return;
93 : }
94 : }
|