/home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/device.hpp Source File
HiCR
|
device.hpp
Go to the documentation of this file.
53 Device(const NUMADomainID_t NUMADomainId, const computeResourceList_t &computeResources, const memorySpaceList_t &memorySpaces)
107 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
108 if (input[key].is_number() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
Definition device.hpp:54
__INLINE__ void deserialize(const nlohmann::json &input)
Definition device.hpp:160
std::vector< std::shared_ptr< ComputeResource > > computeResourceList_t
Definition device.hpp:60
std::vector< std::shared_ptr< MemorySpace > > memorySpaceList_t
Definition device.hpp:65
__INLINE__ void addMemorySpace(const std::shared_ptr< HiCR::MemorySpace > &memorySpace)
Definition device.hpp:122
__INLINE__ void addComputeResource(const std::shared_ptr< HiCR::ComputeResource > &computeResource)
Definition device.hpp:115
Definition device.hpp:38
Device(const NUMADomainID_t NUMADomainId, const computeResourceList_t &computeResources, const memorySpaceList_t &memorySpaces)
Definition device.hpp:53
~Device() override=default
Provides a base definition for a HiCR ComputeResource class.
Provides a base definition for a HiCR Device class.
constexpr std::string_view _HICR_DEVICE_MEMORY_SPACES_KEY_
Definition device.hpp:41
constexpr std::string_view _HICR_DEVICE_COMPUTE_RESOURCES_KEY_
Definition device.hpp:36
Provides a base definition for a HiCR MemorySpace class.
Generated by