MemorySpace Class Reference
|
HiCR
|
HiCR::backend::hwloc::MemorySpace Class Referencefinal
#include <memorySpace.hpp>
Inheritance diagram for HiCR::backend::hwloc::MemorySpace:
Public Member Functions | |
| MemorySpace (const size_t size, const hwloc_obj_t hwlocObject, const hwloc::LocalMemorySlot::binding_type bindingSupport) | |
| ~MemorySpace () override=default | |
| __INLINE__ hwloc::LocalMemorySlot::binding_type | getSupportedBindingType () const |
| __INLINE__ const hwloc_obj_t | getHWLocObject () const |
Public Member Functions inherited from HiCR::MemorySpace | |
| MemorySpace (const nlohmann::json &input) | |
| __INLINE__ std::string | getType () const |
| virtual __INLINE__ const size_t | getSize () const |
| __INLINE__ nlohmann::json | serialize () const |
| __INLINE__ void | deserialize (const nlohmann::json &input) |
Additional Inherited Members | |
Protected Member Functions inherited from HiCR::MemorySpace | |
| MemorySpace (const size_t size) | |
| MemorySpace ()=default | |
Protected Attributes inherited from HiCR::MemorySpace | |
| std::string | _type |
Detailed Description
This class represents a memory space, as visible by the hwloc backend. That is, the entire RAM that the running CPU has access to.
Constructor & Destructor Documentation
◆ MemorySpace()
|
inline |
Constructor for the memory space class of the hwloc backend
- Parameters
-
size The maximum allocatable size detected for this memory space hwlocObject HWLoc object for associated to this memory space bindingSupport The HWLoc binding type supported by this memory space
◆ ~MemorySpace()
|
overridevirtualdefault |
Default destructor
Reimplemented from HiCR::MemorySpace.
Member Function Documentation
◆ getHWLocObject()
|
inline |
Function to get the internal HWLoc object represented by this memory space
- Returns
- The internal HWLoc object
◆ getSupportedBindingType()
|
inline |
Function to determine whether the memory space supports strictly bound memory allocations
- Returns
- The supported memory binding type by the memory space
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/memorySpace.hpp
Generated by
Public Member Functions inherited from