Hi.

When creating a 3D image with the following image format:

cl_image_format imgFormat;
imgFormat.image_channel_data_type = CL_UNORM_INT8;
imgFormat.image_channel_order = CL_INTENSITY;

and using CL_MEM_COPY_HOST_PTR or CL_MEM_USE_HOST_PTR, what should be the size of the buffer pointed to by host_ptr (m_inputData in example below)?
GRIDSIZE^3 or 4*GRIDSIZE^3?

example:

#define GRIDSIZE 256

m_cl_memin = clCreateImage3D (
m_clGPUContext,
CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,
&imgFormat,
GRIDSIZE,
GRIDSIZE,
GRIDSIZE,
0,
0,
m_inputdata,
&ciErrNum);

Best regards
Dag Magne