Registered Member
|
Hello,
I am getting following eigen assertion in my code. my_program: path/to/eigen2/Eigen/src/Core/MatrixStorage.h:44: Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array() [with T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]: Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: http://eigen.tuxfamily.org/dox/Unaligne ... ssert.html READ THIS WEB PAGE !!! ****"' failed. Information given on the URL mentioned above has not helped me in solving this problem. There doesn't seem to be any problem with the code as the same code is running smoothly on some of the machines while giving error on some other machines. Please help. I am running Ubuntu LTS 10.0.4 and using gcc 4.4.3 compiler. The version of eigen library is 2.0.15. Regards, Saleha |
Registered Member
|
First of all, if you want to get rid of this error, just compile your app with EIGEN_DONT_ALIGN defined. You'll lose vectorization with fixed-size objects.
If you want vectorization for fixed-size objects, there's no way around making sure they are aligned i.e. investigating this problem. Given the info I have, I can't say more than what is already written on that page.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient