/home/runner/work/HiCR/HiCR/include/hicr/core/topology.hpp Source File
HiCR
|
topology.hpp
70 __INLINE__ void addDevice(const std::shared_ptr<HiCR::Device> &device) { _deviceList.push_back(device); }
132 if (input.contains("Devices") == false) HICR_THROW_LOGIC("Serialized topology manager information is invalid, as it lacks the 'Devices' entry");
133 if (input["Devices"].is_array() == false) HICR_THROW_LOGIC("Serialized topology manager 'Devices' entry is not an array.");
137 if (device.contains("Type") == false) HICR_THROW_LOGIC("Serialized device information is invalid, as it lacks the 'Type' entry");
138 if (device["Type"].is_string() == false) HICR_THROW_LOGIC("Serialized device information is invalid, as the 'Type' entry is not a string");
170 for (auto currentDeviceItr = currentDevices.begin(); currentDeviceItr != currentDevices.end() && foundCompatibleDevice == false; currentDeviceItr++)
178 // If this device is the same type as given, proceed to check compute resources and memory spaces
191 for (auto currentComputeResourceItr = currentComputeResources.begin(); currentComputeResourceItr != currentComputeResources.end() && foundComputeResource == false;
Definition topology.hpp:41
__INLINE__ void deserialize(const nlohmann::json &input)
Definition topology.hpp:113
__INLINE__ bool isSubset(const HiCR::Topology givenTopology)
Definition topology.hpp:153
__INLINE__ void addDevice(const std::shared_ptr< HiCR::Device > &device)
Definition topology.hpp:70
__INLINE__ const deviceList_t & getDevices() const
Definition topology.hpp:63
void setMetadata(const nlohmann::json &metadata)
Definition topology.hpp:296
static __INLINE__ void verify(const nlohmann::json &input)
Definition topology.hpp:129
std::vector< std::shared_ptr< Device > > deviceList_t
Definition topology.hpp:47
Provides a base definition for a HiCR Device class.
Generated by