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

Public Member Functions | |
LocalMemorySlot (void *const pointer, size_t size, const std::shared_ptr< cl::Buffer > buffer, std::shared_ptr< HiCR::MemorySpace > memorySpace) | |
~LocalMemorySlot ()=default | |
__INLINE__ std::shared_ptr< cl::Buffer > | getBuffer () |
![]() | |
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 OpenCL backend
Constructor & Destructor Documentation
◆ LocalMemorySlot()
|
inline |
Constructor for a MemorySlot class for the OpenCL 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 buffer the OpenCL buffer created for the memory slot memorySpace the OpenCL memory from which this memory slot was obtained
◆ ~LocalMemorySlot()
|
virtualdefault |
Default destructor
Reimplemented from HiCR::LocalMemorySlot.
Member Function Documentation
◆ getBuffer()
|
inline |
Get the OpenCL buffer
- Returns
- OpenCL buffer
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/opencl/localMemorySlot.hpp
Generated by