/home/runner/work/HiCR/HiCR/include/hicr/backends/mpi/memoryManager.hpp Source File
HiCR
|
memoryManager.hpp
Go to the documentation of this file.
60 __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> allocateLocalMemorySlotImpl(std::shared_ptr<HiCR::MemorySpace> memorySpace, const size_t size) override
66 if (m == nullptr) HICR_THROW_LOGIC("The passed memory space is not supported by this memory manager\n");
75 if (status != MPI_SUCCESS || ptr == nullptr) HICR_THROW_RUNTIME("Could not allocate memory of size %lu", size);
89 __INLINE__ void freeLocalMemorySlotImpl(std::shared_ptr<HiCR::LocalMemorySlot> memorySlot) override {}
91 __INLINE__ std::shared_ptr<HiCR::LocalMemorySlot> registerLocalMemorySlotImpl(std::shared_ptr<HiCR::MemorySpace> memorySpace, void *const ptr, const size_t size) override
105 __INLINE__ void deregisterLocalMemorySlotImpl(std::shared_ptr<HiCR::LocalMemorySlot> memorySlot) override
This file implements the memory space class for the HWLoc-based backend.
Definition memoryManager.hpp:51
Definition memoryManager.hpp:41
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > registerLocalMemorySlotImpl(std::shared_ptr< HiCR::MemorySpace > memorySpace, void *const ptr, const size_t size) override
Definition memoryManager.hpp:91
__INLINE__ void freeLocalMemorySlotImpl(std::shared_ptr< HiCR::LocalMemorySlot > memorySlot) override
Definition memoryManager.hpp:89
__INLINE__ void deregisterLocalMemorySlotImpl(std::shared_ptr< HiCR::LocalMemorySlot > memorySlot) override
Definition memoryManager.hpp:105
~MemoryManager() override=default
__INLINE__ std::shared_ptr< HiCR::LocalMemorySlot > allocateLocalMemorySlotImpl(std::shared_ptr< HiCR::MemorySpace > memorySpace, const size_t size) override
Definition memoryManager.hpp:60
Provides a definition for a HiCR Local Memory Slot class.
Provides a definition for the base backend's memory manager class.
Generated by