Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
7782 Discussions

Will Intel compiler do AVX automatically?

hneeman
Beginner
177 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
Black Belt
177 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
177 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
Reply