g++simdgcc4.6

How to activate compiler options to support SIMD instructions


I have a matrix matrix multiplication program in c++, does any body know how to active compiler options to support SIMD instructions?

I use g++ compiler 4.6.3


Solution

  • Presumably you want to use Intel/AMD SIMD instructions, and are looking for -mfpmath=sse, -msse, -msse2, etc. flags, documented here.