New user self-registration is currently disabled. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Bug 983 - Memory align problem
Memory align problem
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: Core - general
unspecified
x86 - 32-bit Windows
: Normal Compilation Problem
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-24 13:21 UTC by MailMr_S
Modified: 2015-03-28 12:41 UTC (History)
3 users (show)



Attachments

Description MailMr_S 2015-03-24 13:21:03 UTC
I try to compile http://www.roboticslibrary.org/ with the current Eigen code 533ed5d85c9a (Avoid SVD: consider denormalized small numbers as zero when computing the rank of the matrix) but I get the following error:

d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(165): error C2719: 'v': Formeller Parameter mit __declspec(align('8')) wird nicht ausgerichtet
          d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(228): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::QuaternionBase<Eigen::Quaternion<double,0>>".
          D:\dev\rl-0.6.2\src\rl\mdl\Cylindrical.cpp(62): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::Quaternion<double,0>".

I could locate this problem to change set d8e950d48cb1 (Bug 973, improve AVX support by enabling vectorization of Vector4i-like types, and enforcing alignement of Vector4f/Vector2d-like types to preserve compatibility with SSE and future Eigen versions that will vectorize them with AVX enabled.) Before this change set it's working.
Comment 1 Christoph Hertzberg 2015-03-28 12:41:00 UTC
This should fix the issue:
https://bitbucket.org/eigen/eigen/commits/1bad3e145f
(Vector3 was passed by value, not by reference)

Note You need to log in before you can comment on or make changes to this bug.