Re: [eigen] alignment bug - or where is our non sse inversion gone? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] alignment bug - or where is our non sse inversion gone?
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Tue, 24 Aug 2010 12:13:47 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=KAbXxtDJJ/LRkw2yWx1yJtNMzTcTio9lFk4ylLpMa0c=; b=OFrL1wR0bQcBXCodRgDmib5meeo/x3rn82UMKmdFIYSrMzrJbmgoi5+upRkBrrHBf2 E5+jk9kBonM5pRiMzE6PzPjG79+z0fxgzBLuncDr8mtmrqbIqlsqaKVkrnx4skgHCw3A sj2SqgqSux3ThRVgSVkcC2LINzTb9pwd3dWtM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=M3gCzKTpDA9PABdDZ2xVfyvE1Itj1WZgTtYAUTgh3rNoCLpJ6WkEIW3Des7xZDdKI7 yJEqYzYOYa1QMK/N1jPtwSuzZbGU1BWVa2ZLyg5rjBkXbOZGQJiIgqjqaufK+pxNNZ1B kspiCe8fQq1qIdpRzHXARJnnZqLGS7/tjodb4=
Thanks for finding this bug.
Actually no need to define EIGEN_DONT_ALIGN_STATICALLY to hit it, simply use:
Matrix<float,4,4,DontAlign>
The fix is to do the same than for ei_quat_product, i.e., add an
Aligned/Unaligned template parameter to ei_compute_inverse_size4.
will do it.
gael
On Tue, Aug 24, 2010 at 12:06 PM, Hauke Heibel
<hauke.heibel@xxxxxxxxxxxxxx> wrote:
> On Tue, Aug 24, 2010 at 9:24 AM, Hauke Heibel
> <hauke.heibel@xxxxxxxxxxxxxx> wrote:
>> I just stumbled over a problem when using EIGEN_DONT_ALIGN_STATICALLY
>> is defined.
>
> Uups, did I mention that what is happening is an unaligned memory
> access and followed by a segfault??
>
> - Hauke
>
>
>