/home/runner/work/HiCR/HiCR/include/hicr/backends/hwloc/cache.hpp Source File
HiCR
|
cache.hpp
Go to the documentation of this file.
72 Cache(const cacheLevel_t level, std::string type, const size_t size, const size_t lineSize, const bool shared)
154 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
155 if (input[key].is_number_unsigned() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
159 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
160 if (input[key].is_number_unsigned() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
164 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
165 if (input[key].is_number() == false) HICR_THROW_LOGIC("The '%s' entry is not a number. Value: '%s'", key.c_str(), input[key].dump().c_str());
169 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
170 if (input[key].is_string() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
174 if (input.contains(key) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", key.c_str());
175 if (input[key].is_boolean() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", key.c_str());
Definition cache.hpp:39
__INLINE__ size_t getLineSize() const
Definition cache.hpp:102
Cache(const cacheLevel_t level, std::string type, const size_t size, const size_t lineSize, const bool shared)
Definition cache.hpp:72
__INLINE__ const std::string & getType() const
Definition cache.hpp:123
__INLINE__ cacheLevel_t getLevel() const
Definition cache.hpp:109
__INLINE__ void deserialize(const nlohmann::json &input)
Definition cache.hpp:151
__INLINE__ nlohmann::json serialize() const
Definition cache.hpp:130
Provides a base definition for a HiCR ComputeResource class.
Provides a failure model and corresponding exception classes.
Generated by