I've been starting to play with OpenCL. We have single channel medical images (16-bits). First tried to create a image with this format:
Code :format.image_channel_order = CL_R; format.image_channel_data_type = CL_SIGNED_INT16;
Assuming that the memory layout would be:
However, this gave an image of all zeros.
When I pad to RGBA, all sees better.
Code :format.image_channel_order = CL_RGBA; format.image_channel_data_type = CL_SIGNED_INT16; RGBARGBA... (where R is from my single channel image, GBA is 0)
Seeing the same behavior on Mac and a Linux/Tesla board setup. Am I doing something wrong? Any experience/comments?