MemoryManager Class Reference
HiCR
|
HiCR::backend::hwloc::MemoryManager Class Referencefinal
#include <memoryManager.hpp>
Inheritance diagram for HiCR::backend::hwloc::MemoryManager:

Public Member Functions | |
MemoryManager (const hwloc_topology_t *topology) | |
~MemoryManager () override=default | |
void | setRequestedBindingType (const LocalMemorySlot::binding_type type) |
LocalMemorySlot::binding_type | getRequestedBindingType () const |
![]() | |
__INLINE__ std::shared_ptr< LocalMemorySlot > | allocateLocalMemorySlot (const std::shared_ptr< MemorySpace > &memorySpace, const size_t size) |
virtual std::shared_ptr< LocalMemorySlot > | registerLocalMemorySlot (const std::shared_ptr< HiCR::MemorySpace > &memorySpace, void *const ptr, const size_t size) |
__INLINE__ void | deregisterLocalMemorySlot (const std::shared_ptr< HiCR::LocalMemorySlot > &memorySlot) |
__INLINE__ void | memset (const std::shared_ptr< HiCR::LocalMemorySlot > &memorySlot, int value, size_t size) |
__INLINE__ void | freeLocalMemorySlot (const std::shared_ptr< HiCR::LocalMemorySlot > &memorySlot) |
Static Public Member Functions | |
static __INLINE__ std::unique_ptr< HiCR::MemoryManager > | createDefault () |
Additional Inherited Members | |
![]() | |
virtual std::shared_ptr< HiCR::LocalMemorySlot > | allocateLocalMemorySlotImpl (std::shared_ptr< HiCR::MemorySpace > memorySpace, const size_t size)=0 |
virtual std::shared_ptr< LocalMemorySlot > | registerLocalMemorySlotImpl (std::shared_ptr< HiCR::MemorySpace > memorySpace, void *const ptr, const size_t size)=0 |
virtual void | memsetImpl (const std::shared_ptr< HiCR::LocalMemorySlot > memorySlot, int value, size_t size) |
virtual void | freeLocalMemorySlotImpl (std::shared_ptr< HiCR::LocalMemorySlot > memorySlot)=0 |
virtual void | deregisterLocalMemorySlotImpl (std::shared_ptr< HiCR::LocalMemorySlot > memorySlot)=0 |
Detailed Description
Implementation of the HWloc-based memory manager for allocation of memory in the host
Constructor & Destructor Documentation
◆ MemoryManager()
|
inline |
Constructor for the memory manager class for the hwloc backend
- Parameters
-
[in] topology An HWloc topology object that can be used to query the available memory resources
◆ ~MemoryManager()
|
overridevirtualdefault |
Default destructor
Reimplemented from HiCR::MemoryManager.
Member Function Documentation
◆ createDefault()
|
inlinestatic |
This function represents the default intializer for this backend
- Returns
- A unique pointer to the newly instantiated backend class
◆ getRequestedBindingType()
|
inline |
Gets the currently set desired memory binding type
- Returns
- The currently requested binding type
◆ setRequestedBindingType()
|
inline |
Sets the desired memory binding type before running an allocation attempt
- Parameters
-
[in] type The new requested binding type to use
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/memoryManager.hpp
Generated by