Closed tkphd closed 7 years ago
In a kernel function, __constant
is a qualifier that can be applied to any buffer: the host (CPU) handles allocation and initialization of the buffer (scalar or array) using clCreateBuffer
, without any special handling, then passes the buffer in to the kernel. This is actually easier in OpenCL than in CUDA.
Learn how to use
__constant
memory for cached BC and mask arrays. Current usage is a fail.