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 : #ifndef HCCL_RESMGRFETCHER_H
12 : #define HCCL_RESMGRFETCHER_H
13 :
14 : #include "stream_lite_mgr.h"
15 : #include "connected_link_mgr.h"
16 : #include "coll_operator.h"
17 : #include "mem_transport_lite_mgr.h"
18 : #include "host_device_sync_notify_lite_mgr.h"
19 : #include "queue_notify_lite_mgr.h"
20 : #include "cnt_1ton_notify_lite_mgr.h"
21 : #include "cnt_nto1_notify_lite_mgr.h"
22 : #include "mirror_task_manager.h"
23 : #include "data_buffer.h"
24 : #include "kernel_param_lite.h"
25 :
26 : namespace Hccl {
27 : class ResMgrFetcher {
28 : public:
29 124 : virtual ~ResMgrFetcher() = default;
30 : virtual HostDeviceSyncNotifyLiteMgr* GetHostDeviceSyncNotifyLiteMgr() = 0;
31 : virtual StreamLiteMgr* GetStreamLiteMgr() = 0;
32 : virtual QueueNotifyLiteMgr* GetQueueNotifyLiteMgr() = 0;
33 : virtual Cnt1tonNotifyLiteMgr* GetCnt1tonNotifyLiteMgr() = 0;
34 : virtual CntNto1NotifyLiteMgr* GetCntNto1NotifyLiteMgr() = 0;
35 : virtual ConnectedLinkMgr* GetConnectedLinkMgr() = 0;
36 : virtual DevId GetDevPhyId() = 0;
37 : virtual u64 GetLocAddr(BufferType type) = 0;
38 : virtual u32 GetExecTimeOut() = 0;
39 :
40 : virtual CollOperator GetCurrentOp() = 0;
41 : virtual RmaBufferLite* GetRmaBufferLite(BufferType type) = 0;
42 : virtual u64 GetCounterAddr() = 0;
43 :
44 : virtual MemTransportLiteMgr* GetTransportLiteMgr() = 0;
45 : virtual MirrorTaskManagerLite* GetMirrorTaskMgrLite() = 0;
46 : };
47 : } // namespace Hccl
48 :
49 : #endif // HCCL_RESMGRFETCHER_H
|