Re: [eigen] General questions about vectorization/alignment AGAIN |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen <eigen@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [eigen] General questions about vectorization/alignment AGAIN
- From: hauke strasdat <strasdat@xxxxxxxxx>
- Date: Tue, 18 Jan 2011 16:39:05 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=MqvJgzfyUZrcsYTG6R+u3KgaRx8IQQ8Jt4Pc9ftenWQ=; b=FmXVKrR2OcFgfcSaAPnn3GOwXvDFtGNltouVeeHifOmnLw3ql551j81HLmVZJ+tjDQ gfYAKAXtjhlOr3dGAr31SXwMCx4MQzxXZPpO7ooR6DKKx8YLc+GxyxPPdO+7/cyE0HPY zI16wPlQdiVhkBtsui0OC2OJ7cLSvub7UNDYQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BBYmhVskodjJ7VXdP1f4RBJWV0L8CYBG0XVRlR63VYif0TWWOgIasrhvav8Lpv0wPW GdpzZyC/KeNrurSu1MTZA69dOxMaN1ctrwXCHzAag+mhL0b0kmcWBM8Re2RYm+WbfWp0 E4cH3rcF8ZhGvUiGHAuST4h5jesi7SJLTI8FU=
Hi guys,
Thanks a lot for you comments! That really sharpened my understanding of the
alignment issue.
I think it would be a good idea to mention in the documentation that
it is safe to use
Eigen::aligned_alloctor as a replacement for std::allocator if its
convenient (e.g. for
templated code) and that it doesn't hurt either to use
EIGEN_MAKE_ALIGNED_OPERATOR_NEW exhaustively.
On Tue, Jan 18, 2011 at 3:02 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
>> (Would be nice to add this info to
>> http://eigen.tuxfamily.org/dox-devel/TopicUnalignedArrayAssert.html.
>
> No interest in incitating users to write non-portable code.
I agree fully agree with you! However, I think it would be good to warn
the users in the documentation that their might be an alignment issues
even though their code did not trigger any assert on their specific
platform.
I developed my code under Linux x86-64. I was (almost) completely
ignorant about alignment issues until I tried the code under Linux x86-32.
It would be even better, if we could force asserts or warnings even
under systems
such as Linux x86-64. Is this any possible? Otherwise, I bet most
Linux x86-64 and
Win64 users won't be aware of, that their Eigen code might be non-portable.
Hauke S.