I need your feed-back over this issue to make sure that i am doing it right.

Thanks

01-31-2014, 01:59 AM

utnapishtim

You computation is right. Two remarks, though:

1. CL_DEVICE_MEM_BASE_ADDR_ALIGN gives the alignment for the largest OpenCL built-in type. This is useful if you intend to store various built-in types at different times in the same buffer because it guarantees that data will always be aligned.

If you know that your buffer will contain only float2 data, you just have to align on sizeof(float2)=8.