/home/runner/work/HiCR/HiCR/include/hicr/backends/opencl/computationKernel.hpp Source File
HiCR
|
computationKernel.hpp
Go to the documentation of this file.
74 if (err != CL_SUCCESS) [[unlikely]] { HICR_THROW_RUNTIME("Can not set kernel arg. Error: %d", err); }
104 if (err != CL_SUCCESS) [[unlikely]] { HICR_THROW_RUNTIME("Can not unmap kernel arg. Error: %d", err); }
112 if (err != CL_SUCCESS) [[unlikely]] { HICR_THROW_RUNTIME("Failed to run the kernel. Error %d", err); }
123 a->getPointer() = queue->enqueueMapBuffer(*(a->getBuffer()), CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, 0, a->getSize(), nullptr, nullptr, &err);
124 if (err != CL_SUCCESS) [[unlikely]] { HICR_THROW_RUNTIME("Can not map kernel arg. Error: %d", err); }
169 if (a == nullptr) [[unlikely]] { HICR_THROW_RUNTIME("Provided memory slot containing the argument is not supported."); }
Provides a definition for the local memory slot class for the OpenCL backend.
Definition computationKernel.hpp:44
~ComputationKernel()=default
ComputationKernel(const std::shared_ptr< cl::Kernel > &kernel, const std::vector< std::shared_ptr< HiCR::LocalMemorySlot > > &args, const cl::NDRange offset, const cl::NDRange global, const cl::NDRange local)
Definition computationKernel.hpp:57
__INLINE__ void start(const cl::CommandQueue *queue) override
Definition computationKernel.hpp:90
Definition kernel.hpp:37
Provides a definition for a HiCR Local Memory Slot class.
Provides a failure model and corresponding exception classes.
This file implements the Kernel class for the OpenCL backend.
Generated by