/home/runner/work/HiCR/HiCR/include/hicr/backends/opencl/memorySpace.hpp Source File
HiCR
|
memorySpace.hpp
Go to the documentation of this file.
53 MemorySpace(const std::weak_ptr<opencl::Device> device, const std::string &type, const size_t size)
87 __INLINE__ void serializeImpl(nlohmann::json &output) const override { output["Memory Space Type"] = _type; }
92 if (input.contains(typeKey) == false) HICR_THROW_LOGIC("The serialized object contains no '%s' key", typeKey.c_str());
93 if (input[typeKey].is_number() == false) HICR_THROW_LOGIC("The '%s' entry is not a number", typeKey.c_str());
Provides a definition for the local memory slot class for the OpenCL backend.
Definition memorySpace.hpp:44
__INLINE__ void deserialize(const nlohmann::json &input)
Definition memorySpace.hpp:132
Definition memorySpace.hpp:43
MemorySpace(const nlohmann::json &input)
Definition memorySpace.hpp:70
__INLINE__ const std::weak_ptr< const opencl::Device > getDevice() const
Definition memorySpace.hpp:83
~MemorySpace()=default
__INLINE__ std::string getType() const override
Definition memorySpace.hpp:76
MemorySpace(const std::weak_ptr< opencl::Device > device, const std::string &type, const size_t size)
Definition memorySpace.hpp:53
Provides a base definition for a HiCR MemorySpace class.
Generated by