Re: [eigen] Status of AVX support |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Status of AVX support
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Wed, 7 Dec 2011 10:47:48 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=M8junzJ2kTO7NcjRVd7H1AIO/SV2vBT1P5a/WZ4in1k=; b=qwWmLll+1IbCwbArIv5nreS08ZxNJfB0zzZL+CwLnHOexUgv0dAUadFBkXzYJJ3iIh JwOFcKtBncsyGDPMkCNYL7Q6S4L3O65oAnENf8r5JjRutUAEv4Dg43zxdpDkXl23sKaS vt9IRGZsdfs41mHskXDmpSETmIS2tRkjNGwBg=
2011/12/7 Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>:
> On 06.12.2011 14:01, Benoit Jacob wrote:
>>
>> The difficulty is that taking advantage of AVX without regressing
>> current performance from SSE will require us to handle *both* 16-byte
>> and 32-byte packet size and alignment. We will need 16-byte for e.g.
>> Vector4f, while we will of course want to use 32-byte wherever we can.
>
>
> I'm afraid, you will lose ABI-compatibility if you use 32-byte alignment by
> default. E.g. the size of
> struct { char x; Vector4d y; };
> will be 48 bytes with 16 byte alignment and 64 bytes with 32 byte alignment.
Very good point.
Benoit
>
> W.r.t porting to AVX: Be aware that there might be some pitfalls with
> AVX-performance:
> http://www.agner.org/optimize/blog/read.php?i=142
>
> Christoph
>
>
> --
> ----------------------------------------------
> Dipl.-Inf. Christoph Hertzberg
> Cartesium 0.051
> Universität Bremen
> Enrique-Schmidt-Straße 5
> 28359 Bremen
>
> Tel: (+49) 421-218-64252
> ----------------------------------------------
>
>