Diagnostic 15300: LOOP WAS VECTORIZED

ID 662804
Updated 9/14/2018
Version Latest
Public

author-image

By

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

Cause:

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

  

Example:

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.
  enddo

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
LOOP END

See also:

Requirements for Vectorizable Loops

Vectorization Essentials

Vectorization and Optimization Reports

Back to the list of vectorization diagnostics for Intel® Fortran