Quantcast
Channel: Intermédiaire
Viewing all articles
Browse latest Browse all 677

Diagnostic 15414: Loop was not vectorized: loop body became empty after optimizations

$
0
0

Product Version: Intel(R) Visual Fortran Compiler XE 15.0.0.070

Cause:

The vectorization report generated when using Visual Fortran Compiler's optimization options (-O2  -Qopt-report:2) states that loop was not vectorized since loop body became empty after optimizations.

Example:

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

integer function foo(a, b, n)
    implicit none
    integer, intent(in) :: n
    real, intent(inout) :: a
    real, intent (in)   :: b
    integer :: i

    do i=1,n
           a = b + 1
    end do

    foo = a

end function 

Report from: Vector optimizations [vec]

LOOP BEGIN at f15414.f90(8,5)
   remark #15414: loop was not vectorized: nothing to vectorize since loop body became empty after optimizations
LOOP END

Resolution:

In the example above, there is only one expression inside the loop. When moved outside the loop as a result of the compiler's optimization process there is nothing else left inside the loop to vectorize. 

See also:

Requirements for Vectorizable Loops

Vectorization Essentials

Vectorization and Optimization Reports

Back to the list of vectorization diagnostics for Intel Fortran

  • vectorization
  • optimization options
  • optimization
  • loop vectorization
  • Intel Compilers Vectorization Reports Optimization Reports
  • Optimization Reports
  • Développeurs
  • Partenaires
  • Professeurs
  • Étudiants
  • Apple OS X*
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Windows*
  • Fortran
  • Avancé
  • Intermédiaire
  • Intel® Integrated Native Developer Experience (INDE)
  • Compilateur Intel® Fortran
  • Intel® Fortran Composer XE
  • Intel® Parallel Composer
  • Intel® Visual Fortran Composer XE
  • Intel® Fortran Studio XE
  • Intel® Integrated Native Developer Experience (INDE) Build Edition pour OS X*
  • Intel® Parallel Studio
  • Intel® Parallel Studio XE
  • Intel® Parallel Studio XE Cluster Edition
  • Intel® Parallel Studio XE Composer Edition
  • Intel® Parallel Studio XE Professional Edition
  • Outils de développement
  • Informatique parallèle
  • Vectorisation
  • URL
  • Rubriques de compilateurs
  • Amélioration des performances
  • Zone des thèmes: 

    IDZone
  • Windows*

  • Viewing all articles
    Browse latest Browse all 677

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>