Diagnostic 15300: LOOP WAS VECTORIZED

Published: 04/16/2015  

Last Updated: 09/14/2018

By Devorah Hayman

Product Version: Intel® Fortran Compiler 15.0 and a later version 


The vectorization report generated using Intel® Fortran Compiler's optimization and vectorization report options states that loop was vectorized:

Windows* OS:  /O2  /Qopt-report:2  /Qopt-report-phase:vec    

Linux OS or OS X:  -O2 -qopt-report2  -qopt-report-phase=vec



An example below will generate the following  remark in optimization report:

program f15300
  implicit none
  integer, parameter :: n=100
  real, dimension(n) :: x = (/(i, i=1,n)/)
  integer :: i

  do i = 1,n
    x(i) = x(i) * 10.

end program f15300

ifort -c  -O2 -qopt-report2 -qopenmp-simd -qopt-report-file=stderr -qopt-report-phase=vec f15300.f90

Begin optimization report for: F15300

    Report from: Vector optimizations [vec]

LOOP BEGIN at f15300.f90(7,3)
   remark #15300: LOOP WAS VECTORIZED

See also:

Requirements for Vectorizable Loops

Vectorization Essentials

Vectorization and Optimization Reports

Back to the list of vectorization diagnostics for Intel® Fortran

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.