Changes between Initial Version and Version 1 of WikiStart/Troubleshooting/EigenDontAlign


Ignore:
Timestamp:
05/04/12 18:04:06 (7 years ago)
Author:
christian.rauch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart/Troubleshooting/EigenDontAlign

    v1 v1  
     1==  Trouble-Shooting Eigen on 32bit Architectures == 
     2Using Eigen on 32bit architectures can produce the following error: 
     3 
     4{{{ 
     5some_deployment: /path/to/rock/install/include/eigen3/Eigen/src/Core/DenseStorage.h:69:  
     6Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 16>::plain_array()  
     7[with T = double, int Size = 16, int MatrixOrArrayOptions = 0]:  
     8Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: "  
     9"http://eigen.tuxfamily.org/dox-devel/TopicUnalignedArrayAssert.html"  
     10" **** READ THIS WEB PAGE !!! ****"' failed. 
     11}}} 
     12 
     13This can be solved be rebuilding rock with the ''EIGEN_DONT_ALIGN'' flag enabled globally. 
     14To do this, one has to add "-DEIGEN_DONT_ALIGN=1" to the Cflags in "rock/base/types/base-types.pc.in". 
     15 
     16The "Cflags"-line in "base-types.pc.in" should look like this: 
     17 
     18{{{ 
     19Cflags: -I${includedir} -DEIGEN_DONT_ALIGN=1 
     20}}}