Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hneeman
Beginner
30 Views

Will Intel compiler do AVX automatically?

Will AVX support be automatic in the Intel C and Fortran compilers? That is, if you set the correct command line options in the compile command, will the Intel compilers automatically AVXify the executable, the way that they currently do automatic SSE* vectorization?

0 Kudos
2 Replies
TimP
Black Belt
30 Views

Yes, there are -QxAVX options in Intel compilers beginning with current 11.1. Both scalar and parallel AVX instructions are used, and there are a few cases which become auto-vectorizable for the first time. More about this subject has appeared in the past on the AVX forum.
Dale_S_Intel
Employee
30 Views

In fact, even if you have SSE intrinsics in your code, if you use the -xavx switch it will produce avx-128 instructions instead of sse instructions.
Dale