[C++-sig] Exposing 128-bytes aligned datatype

VáclavŠmilauer eudoxos at arcig.cz
Tue Feb 21 17:46:58 CET 2012


> 128 *byte* alignment? Wow. No, no compiler will support that legally 
> as it would crap all over your stack frame. I vaguely remember that 
> GCC caps alignment to 40 bytes due to some supported architecture's 
> stack frame being incapable of going higher.
> If you're aligning to 128 bytes then you almost certainly need to 
> revisit how your code is designed and what algorithms are being used. 

I did not design the OpenCL standard (see
http://www.khronos.org/registry/cl/api/1.2/cl_platform.h at the end, there is
cl_double16). Just to assure you, those types are never ever passed on stack.
That header works just fine with gcc.






More information about the Cplusplus-sig mailing list