Intel Vectorization Toolkit: 3. Determine Loop Candidates Using Intel Compiler Vec-Report

---------------------------------------------------------------------------------------
Back to the 6-step Process for Vectorization
---------------------------------------------------------------------------------------

Intel Vectorization Toolkit: Step 3. Determine Loop Candidates Using Intel Compiler Vec-Report


The vectorization report (or vec-report) of the Intel Compiler can tell you whether or not each loop in your code was vectorized. Look at the output of the vec-report for the hotspots you determined in Step 2.  If there are loops in your hotspots that did not vectorize, check whether they have math, data processing, or string calculations on data in parallel (for instance in an array).  If they do, they might benefit from vectorization.  Move to step 4 if any candidates are found. 

To run the vec-report, use the "-vec-report2" or "/Qvec-report2" option.

Note that the Intel Compiler can be run on just a portion of the code and will be compatible with the native compilers (gcc on Linux and Mac OS and Microsoft* Visual Studio on Windows*).




-------------------------------------------------
Additional Resources for this Step
-------------------------------------------------
Read Documentation: Vec-Report (including other option levels)
Read a tutorial: Generating a Vectorization Report
Read a white paper: See Using Auto Vectorization.

Talk about it with other users and experts: Intel C++ Compiler Forum, Intel Visual Fortran Compiler Forum, Intel Fortran Compiler for Linux and Mac OS* X Forum
Try the compiler: Intel Software Evaluation Center

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.