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

Public Types | |
using | NUMADomainID_t = unsigned int |
![]() | |
using | computeResourceList_t = std::vector< std::shared_ptr< ComputeResource > > |
using | memorySpaceList_t = std::vector< std::shared_ptr< MemorySpace > > |
Public Member Functions | |
Device (const NUMADomainID_t NUMADomainId, const computeResourceList_t &computeResources, const memorySpaceList_t &memorySpaces) | |
Device () | |
Device (const nlohmann::json &input) | |
~Device () override=default | |
![]() | |
Device (const nlohmann::json &input) | |
Device (computeResourceList_t computeResources, memorySpaceList_t memorySpaces) | |
__INLINE__ std::string | getType () const |
__INLINE__ const computeResourceList_t & | getComputeResourceList () |
__INLINE__ const memorySpaceList_t & | getMemorySpaceList () |
__INLINE__ void | addComputeResource (const std::shared_ptr< HiCR::ComputeResource > &computeResource) |
__INLINE__ void | addMemorySpace (const std::shared_ptr< HiCR::MemorySpace > &memorySpace) |
__INLINE__ nlohmann::json | serialize () const |
__INLINE__ void | deserialize (const nlohmann::json &input) |
Additional Inherited Members | |
![]() | |
Device ()=default | |
![]() | |
std::string | _type |
Detailed Description
This class represents a device, as visible by the hwloc backend. That is, an assumed SMP processor plus a shared RAM that all process have access to.
Member Typedef Documentation
◆ NUMADomainID_t
using HiCR::backend::hwloc::Device::NUMADomainID_t = unsigned int |
Type definition for a NUMA Domain identifier
Constructor & Destructor Documentation
◆ Device() [1/3]
|
inline |
Constructor for the device class of the HWLoC backend
- Parameters
-
[in] NUMADomainId The OS-given NUMA domain identifier represented by this class [in] computeResources The compute resources (cores or hyperthreads) detected in this device (CPU) [in] memorySpaces The memory spaces (e.g., NUMA domains) detected in this device (CPU)
◆ Device() [2/3]
|
inline |
Empty constructor for serialization / deserialization
◆ Device() [3/3]
|
inline |
Deserializing constructor
The instance created will contain all information, if successful in deserializing it, corresponding to the passed NUMA domain This instance should NOT be used for anything else than reporting/printing the contained resources
- Parameters
-
[in] input A JSON-encoded serialized NUMA domain information
◆ ~Device()
|
overridevirtualdefault |
Default destructor
Reimplemented from HiCR::Device.
The documentation for this class was generated from the following file:
- /home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/device.hpp
Generated by