Hello.
I wonder that my own structure shoulde have the size of multiple of 16 bytes.
I remember that I read a post saying it would be better to make the size of a structure be multiple of 16. However, I’m not sure that.
If I define a structure like this, the size of A is 20 bytes.
Struct A
{
float a, b, c, d ;
int k ;
};
Considering memory access, I think 20 bytes is not a good size since OpenCL works with numbers, such as 16, 32, 128.
Thanks in advance !