LocalMemorySlot Class Reference
HiCR
|
HiCR::backend::ascend::LocalMemorySlot Class Referencefinal
#include <localMemorySlot.hpp>
Inheritance diagram for HiCR::backend::ascend::LocalMemorySlot:

Public Member Functions | |
LocalMemorySlot (void *const pointer, size_t size, const aclDataBuffer *dataBuffer, std::shared_ptr< HiCR::MemorySpace > memorySpace) | |
~LocalMemorySlot ()=default | |
__INLINE__ const aclDataBuffer * | getDataBuffer () const |
![]() | |
LocalMemorySlot (void *const pointer, const size_t size, std::shared_ptr< HiCR::MemorySpace > memorySpace=nullptr) | |
__INLINE__ void *& | getPointer () noexcept |
__INLINE__ size_t | getSize () const noexcept |
__INLINE__ std::shared_ptr< HiCR::MemorySpace > | getMemorySpace () const noexcept |
__INLINE__ size_t | getMessagesRecv () const noexcept |
__INLINE__ size_t | getMessagesSent () const noexcept |
Detailed Description
This class represents an abstract definition for a Local Memory Slot resource for the Ascend backend
Constructor & Destructor Documentation
◆ LocalMemorySlot()
|
inline |
Constructor for a MemorySlot class for the Ascend backend
- Parameters
-
pointer if this is a local slot (same rank as this the running process), this pointer indicates the address of the local memory segment size the size of the memory slot, assumed to be contiguous dataBuffer the ACL data buffer created for the memory slot memorySpace the Ascend memory from which this memory slot was obtained
◆ ~LocalMemorySlot()
|
virtualdefault |
Default destructor
Reimplemented from HiCR::LocalMemorySlot.
Member Function Documentation
◆ getDataBuffer()
|
inline |
Return the ACL data buffer associated to the memory slot
- Returns
- the ACL data buffer associated to the memory slot
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/ascend/localMemorySlot.hpp
Generated by