Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Will Intel compiler do AVX automatically?

hneeman
Beginner
329 Views
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
Honored Contributor III
329 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.
0 Kudos
Dale_S_Intel
Employee
329 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
0 Kudos
Reply