Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Diagnostic 15319: Using NOVECTOR directive

$
0
0

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

Cause:

When using NOVECTOR directive in code, the vectorization report generated using Visual Fortran Compiler's optimization and vectorization report options ( -O2 - Qvec-report2 - Qopt-report:2includes non-vectorized loop instance. 

Example:

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

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

    integer :: i

!DEC$ NOVECTOR

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

end subroutine foo 

 

Report from: Vector & Auto-parallelization optimizations [vec, par]

LOOP BEGIN at f15319.f90(11,8)

 remark #15319: loop was not vectorized: novector directive used

LOOP END

There may be cases where you want to explicitly avoid vectorization of a loop; for example, if vectorization would result in a performance regression rather than an improvement. In these cases, you can use theNOVECTOR directive to disable vectorization of the loop. 

See also:   
VECTOR and NOVECTOR: https://software.intel.com/en-us/node/526894

Back to the list of vectorization diagnostics for Intel Fortran

  • Intel Compilers Vectorization Reports Optimization Reports
  • Developers
  • Professors
  • Students
  • Apple OS X*
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Fortran
  • Advanced
  • Intermediate
  • Intel® Integrated Native Developer Experience (INDE)
  • Intel® Composer XE
  • Intel® Fortran Compiler
  • Intel® Fortran Composer XE
  • Intel® Parallel Composer
  • Intel® Visual Fortran Composer XE
  • Intel® Fortran Studio XE
  • 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
  • Development Tools
  • Optimization
  • Vectorization
  • URL
  • Code Sample
  • Compiler Topics
  • Error checking
  • Improving performance
  • Theme Zone: 

    IDZone

    Viewing all articles
    Browse latest Browse all 3270

    Trending Articles



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