Vectorizing Code on Sandy Bridge with AVX and SSE

Print Friendly, PDF & Email

Over at the Walking Randomly blog, Michael Croucher from the University of Manchester writes that there are many routes for programmers to take advantage of AVX vectorization on Sandy Bridge CPUs.

Since working with intrinsics is such hard work, why not let the compiler take the strain? Many modern compilers can automatically vectorize your C, C++ or Fortran code including gcc, PGI and Intel. Sometimes all you need to do is add an extra switch at compile time and reap the speed benefits. In truth, vectorization isn’t always automatic and the programmer needs to give the compiler some assistance but it is a lot easier than hand-coding intrinsics.

Read the Full Story.


  1. […] you have come here from the InsideHPC article and are a little confused it is because they used an incorrect link.  The article you are looking […]


  1. The links doesn’t correspond to the correct post of his blog. It should be

  2. The link has been fixed. Thanks