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_AICPU_RMT_RMA_BUFFER_LITE_H_
12 : #define HCCL_AICPU_RMT_RMA_BUFFER_LITE_H_
13 :
14 : #include <set>
15 : #include <vector>
16 : #include "buffer.h"
17 : #include "op_mode.h"
18 : #include "coll_alg_info.h"
19 : #include "data_buffer.h"
20 : #include "mem_transport_lite_mgr.h"
21 :
22 : namespace Hccl {
23 :
24 : class RmtDataBufferMgr {
25 : public:
26 8 : RmtDataBufferMgr(MemTransportLiteMgr *memTransportLiteMgr, CollAlgInfo *algInfo) :
27 8 : memTransportLiteMgr_(memTransportLiteMgr), algInfo_(algInfo) {};
28 8 : ~RmtDataBufferMgr() {};
29 : DataBuffer GetBuffer(const LinkData &linkData, BufferType bufferType);
30 :
31 : private:
32 : MemTransportLiteMgr *memTransportLiteMgr_;
33 : CollAlgInfo *algInfo_;
34 : };
35 : } // namespace Hccl
36 :
37 : #endif // HCCL_AICPU_RESOURCE_AI_CPU_MGRS_H_
|