/home/runner/work/HiCR/HiCR/include/hicr/core/topology.hpp Source File
HiCR
|
topology.hpp
62 __INLINE__ void addDevice(const std::shared_ptr<HiCR::Device> &device) { _deviceList.push_back(device); }
105 if (input.contains("Devices") == false) HICR_THROW_LOGIC("Serialized topology manager information is invalid, as it lacks the 'Devices' entry");
106 if (input["Devices"].is_array() == false) HICR_THROW_LOGIC("Serialized topology manager 'Devices' entry is not an array.");
110 if (device.contains("Type") == false) HICR_THROW_LOGIC("Serialized device information is invalid, as it lacks the 'Type' entry");
111 if (device["Type"].is_string() == false) HICR_THROW_LOGIC("Serialized device information is invalid, as the 'Type' entry is not a string");
Definition topology.hpp:40
__INLINE__ void addDevice(const std::shared_ptr< HiCR::Device > &device)
Definition topology.hpp:62
__INLINE__ const deviceList_t & getDevices() const
Definition topology.hpp:55
void setMetadata(const nlohmann::json &metadata)
Definition topology.hpp:134
static __INLINE__ void verify(const nlohmann::json &input)
Definition topology.hpp:102
std::vector< std::shared_ptr< Device > > deviceList_t
Definition topology.hpp:46
Provides a base definition for a HiCR Device class.
Generated by