LocalMemorySlot Class Reference

HiCR: HiCR::backend::ascend::LocalMemorySlot Class Reference
HiCR
HiCR::backend::ascend::LocalMemorySlot Class Referencefinal

#include <localMemorySlot.hpp>

Inheritance diagram for HiCR::backend::ascend::LocalMemorySlot:
HiCR::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
 
- Public Member Functions inherited from HiCR::LocalMemorySlot
 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::MemorySpacegetMemorySpace () 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()

HiCR::backend::ascend::LocalMemorySlot::LocalMemorySlot ( void *const  pointer,
size_t  size,
const aclDataBuffer *  dataBuffer,
std::shared_ptr< HiCR::MemorySpace memorySpace 
)
inline

Constructor for a MemorySlot class for the Ascend backend

Parameters
pointerif this is a local slot (same rank as this the running process), this pointer indicates the address of the local memory segment
sizethe size of the memory slot, assumed to be contiguous
dataBufferthe ACL data buffer created for the memory slot
memorySpacethe Ascend memory from which this memory slot was obtained

◆ ~LocalMemorySlot()

HiCR::backend::ascend::LocalMemorySlot::~LocalMemorySlot ( )
virtualdefault

Default destructor

Reimplemented from HiCR::LocalMemorySlot.

Member Function Documentation

◆ getDataBuffer()

__INLINE__ const aclDataBuffer * HiCR::backend::ascend::LocalMemorySlot::getDataBuffer ( ) const
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: