/home/runner/work/HiCR/HiCR/include/hicr/backends/opencl/computeResource.hpp Source File
HiCR
|
computeResource.hpp
Go to the documentation of this file.
83 __INLINE__ void serializeImpl(nlohmann::json &output) const override { output["Compute Resource Type"] = _type; }
88 if (input.contains(typeKey) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", typeKey.c_str());
89 if (input[typeKey].is_number() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", typeKey.c_str());
Definition computeResource.hpp:40
__INLINE__ void deserialize(const nlohmann::json &input)
Definition computeResource.hpp:95
Definition computeResource.hpp:42
__INLINE__ const std::weak_ptr< const opencl::Device > getDevice() const
Definition computeResource.hpp:79
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