/home/runner/work/HiCR/HiCR/include/hicr/backends/lpf/memoryManager.hpp Source File
HiCR
|
memoryManager.hpp
Go to the documentation of this file.
76 __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> registerLocalMemorySlotImpl(std::shared_ptr<HiCR::MemorySpace> memorySpace, void *const ptr, const size_t size) override
82 if (m == nullptr) HICR_THROW_LOGIC("The passed memory space is not supported by this memory manager\n");
99 __INLINE__ void deregisterLocalMemorySlotImpl(std::shared_ptr<HiCR::LocalMemorySlot> memorySlot) override
105 if (slot == nullptr) HICR_THROW_LOGIC("The passed memory slot is not supported by this backend\n");
118 __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> allocateLocalMemorySlotImpl(std::shared_ptr<HiCR::MemorySpace> memorySpace, const size_t size) override
124 if (m == nullptr) HICR_THROW_LOGIC("The passed memory space is not supported by this memory manager\n");
143 __INLINE__ void freeLocalMemorySlotImpl(std::shared_ptr<HiCR::LocalMemorySlot> memorySlot) override
149 if (slot == nullptr) HICR_THROW_LOGIC("The passed memory slot is not supported by this backend\n");
155 if (slot == nullptr) HICR_THROW_RUNTIME("Invalid memory slot(s) provided. It either does not exist or represents a NULL pointer.");
This file implements the memory space class for the HWLoc-based backend.
Definition memoryManager.hpp:51
Definition memoryManager.hpp:43
__INLINE__ void deregisterLocalMemorySlotImpl(std::shared_ptr< HiCR::LocalMemorySlot > memorySlot) override
Definition memoryManager.hpp:99
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > allocateLocalMemorySlotImpl(std::shared_ptr< HiCR::MemorySpace > memorySpace, const size_t size) override
Definition memoryManager.hpp:118
MemoryManager(lpf_t lpf)
Definition memoryManager.hpp:63
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > registerLocalMemorySlotImpl(std::shared_ptr< HiCR::MemorySpace > memorySpace, void *const ptr, const size_t size) override
Definition memoryManager.hpp:76
__INLINE__ void freeLocalMemorySlotImpl(std::shared_ptr< HiCR::LocalMemorySlot > memorySlot) override
Definition memoryManager.hpp:143
Provides a definition for a HiCR Local Memory Slot class.
Provides a definition for the base backend's memory manager class.
Generated by