Re: [eigen] Alignment issues |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] Alignment issues
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Fri, 14 Feb 2014 11:05:30 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=/BeIqor82IVRil6z2+rL5MY+fVmMF4VRZfzkeF6KHZ0=; b=ZWmFEl7Ahs0lIMITFVFlW9PCt2RXbe3xfQBcCOIxsXjctZEMD695fXLlwuCJ7rvpAi /05XRfthWlsTsp3V6n0MzSZe+ebf6iHUBvvXEi4qSyd+Dc0w2abls7b6WY1F7lfR4yHd T+i1f2wf4LkiwOfsc81d8TfPvUTWo+elDGsuTdYQ5eJDp3vX2H79YHTBeLrLVRrzIH3z ArbMmmaoCkotp2ud2x7fx5qM42d1x/wNnTDmwPoW8+fL7KTdocJp6nvBeDEL0wNQ7xyL Vjsgw1PysrBDAxD6z3QtvsXiqDWJHCcVruR9TzdbJ7TyvAofOkyQaP9lk45vFHTTC3mU bXCA==
>
> In your test program, requesting an alignment of 128 bytes is asking for troubles. The standard only guarantees support for alignment up
> to alignof(std::max_align_t), which on OS X 64bits is 16. However, an unsupported alignment requirement should trigger a compile-time
> error, so this actually sounds like a bug in clang. Since you’re using version 3.3 and alignment support was introduced right in that version,
> it could be. But are you using truly clang 3.3 or are you using the 3.3svn shipped with Xcode 5?
I tried with:
* clang version 3.3 (tags/RELEASE_33/final) [from macport]
* Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) [from xcode]
* g++-mp-4.8 (MacPorts gcc48 4.8.2_0) 4.8.2
and got same behaviors.
Note that we do not only need 16bytes alignement but also 32 bytes for AVX.
gael
>
>
> Nicola
>
>
>