This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Vectorization Trouble

Tags: None
(comma "," separated)
Haroogan
Registered Member
Posts
2
Karma
0

Vectorization Trouble

Tue Oct 25, 2011 6:38 pm
Using MinGW. The following code:

Code: Select all
#include <Eigen/Dense>

using namespace Eigen;

int main(int argc, char **argv) {
#ifdef EIGEN_VECTORIZE
   fprintf(stdout, "Eigen: Vectorization is %s\n", "on");
#endif

   Vector4f a, b;
   asm("#it begins here!");
   a += b;
   asm("#it ends here!");

   return 0;
}


EIGEN_VECTORIZE is not declared, and disassembly contains regular registers, futhermore it does not show asm comments.

I've tried several compiler flags.

Any ideas?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Vectorization Trouble

Tue Oct 25, 2011 8:24 pm
you need at least gcc 4.2 and on 32bits use the -msse2 flag.
Haroogan
Registered Member
Posts
2
Karma
0

Re: Vectorization Trouble

Tue Oct 25, 2011 8:41 pm
Sure, all those requirements were met. Anyway never mind it was Eclipse build problems and stuff...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]