LCOV - code coverage report
Current view: top level - legacy/ascend910/pub_inc/inner - remote_ipc_rma_buffer.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2026-08-18 17:47:01 Functions: 100.0 % 1 1

            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 REMOTE_IPC_RMA_BUFFER_H
      12              : #define REMOTE_IPC_RMA_BUFFER_H
      13              : 
      14              : #include <memory>
      15              : #include <string>
      16              : #include "hccl_common.h"
      17              : #include "hccl_network_pub.h"
      18              : #include "rma_buffer.h"
      19              : 
      20              : namespace hccl {
      21              : class RemoteIpcRmaBufferImpl;
      22              : 
      23              : class RemoteIpcRmaBuffer : public RmaBuffer {
      24              : public:
      25              :     RemoteIpcRmaBuffer(const HcclNetDevCtx netDevCtx);
      26              :     HcclResult Deserialize(const std::string&);
      27              :     HcclResult Open();
      28              :     HcclResult Close();
      29              :     ~RemoteIpcRmaBuffer() override;
      30              : 
      31              :     RemoteIpcRmaBuffer(const RemoteIpcRmaBuffer& that) = delete;
      32              :     RemoteIpcRmaBuffer& operator=(const RemoteIpcRmaBuffer& that) = delete;
      33            2 :     bool IsOpened() const { return isOpened_; }
      34              : 
      35              : private:
      36              :     std::unique_ptr<RemoteIpcRmaBufferImpl> pimpl_;
      37              :     bool isOpened_{false};
      38              : };
      39              : } // namespace hccl
      40              : #endif //  REMOTE_IPC_RMA_BUFFER_H
        

Generated by: LCOV version 2.0-1