/home/runner/work/HiCR/HiCR/include/hicr/backends/opencl/computeResource.hpp Source File
HiCR
|
computeResource.hpp
Go to the documentation of this file.
85 __INLINE__ void serializeImpl(nlohmann::json &output) const override { output["Compute Resource Type"] = _type; }
90 if (input.contains(typeKey) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", typeKey.c_str());
91 if (input[typeKey].is_number() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", typeKey.c_str());
Definition computeResource.hpp:39
__INLINE__ void deserialize(const nlohmann::json &input)
Definition computeResource.hpp:79
Definition computeResource.hpp:42
__INLINE__ const std::weak_ptr< const opencl::Device > getDevice() const
Definition computeResource.hpp:81
__INLINE__ std::string getType() const override
Definition computeResource.hpp:74
ComputeResource(const nlohmann::json &input)
Definition computeResource.hpp:68
ComputeResource(const std::shared_ptr< opencl::Device > &device, const std::string &type)
Definition computeResource.hpp:51
~ComputeResource()=default
Provides a base definition for a HiCR ComputeResource class.
Provides a failure model and corresponding exception classes.
Generated by