Good portable SIMD library

Budric picture Budric · Jun 11, 2009 · Viewed 16k times · Source

can anyone recommend portable SIMD library that provides a c/c++ API, works on Intel and AMD extensions and Visual Studio, GCC compatible. I'm looking to speed up things like scaling a 512x512 array of doubles. Vector dot products, matrix multiplication etc.

So far the only one I found is: http://simdx86.sourceforge.net/ but as the very first page says it doesn't compile on visual studio.

There's also Intel IPP which doesn't work on AMD from what I gather. And there's Framewave from AMD, but I was having some problems compiling and linking their library and their forums are completely dead. Anyone managed to use Framewave anywhere?

Thanks.

Answer

Jim Hunziker picture Jim Hunziker · May 16, 2011

Eigen is an MPL2-licensed header-only C++ library that has vector / matrix math that is optimized for SSE, Neon, and Altivec. They have more more sophisticated math operations in their add-on modules.