Quantcast
Channel: 英特尔® Composer XE
Viewing all articles
Browse latest Browse all 176

Diagnostic 15542: Loop was not vectorized: inner loop was already vectorized.

$
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 the inner loop was vectorized.

Example:

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

subroutine foo(a, n1, n)
    implicit none
    integer, intent(in) :: n, n1
    real, intent(inout) :: a(n1,n1)
    integer :: i, j

        do i=1,n
            do j=1,n
                a(j,i) = a(j,i) + 1
            end do
        end do
end subroutine foo
Report from: Loop nest, Vector & Auto-parallelization optimizations [loop, vec, par]

LOOP BEGIN at  f15542.f90(7,9)
remark #15542: loop was not vectorized: inner loop was already vectorized

LOOP BEGIN at  f15542.f90(8,13)
Peeled
LOOP END

LOOP BEGIN at  f15542.f90(8,13)
remark #15399: vectorization support: unroll factor set to 2
remark #15300: LOOP WAS VECTORIZED
LOOP END

LOOP END

See also:

Requirements for Vectorizable Loops

Vectorization Essentials

Vectorization and Optimization Reports

Back to the list of vectorization diagnostics for Intel Fortran

  • vectorization
  • Intel Compilers Vectorization Reports Optimization Reports
  • Optimization Reports
  • vec-report vectorization reports
  • diagnostic messages
  • 开发人员
  • 合作伙伴
  • 教授
  • Apple OS X*
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Yocto Project
  • 物联网
  • 用户体验
  • Windows*
  • Fortran
  • 高级
  • 中级
  • 编译器
  • 英特尔® Composer XE
  • 英特尔® Fortran Composer XE
  • 英特尔® Visual Fortran Composer XE
  • Intel® Cluster Studio XE
  • 英特尔® Fortran Studio XE
  • 英特尔® Parallel Studio XE
  • 英特尔® Parallel Studio XE Cluster Edition
  • 英特尔® Parallel Studio XE Composer Edition
  • 英特尔® Parallel Studio XE Professional Edition
  • Intel® Advanced Vector Extensions
  • 开发工具
  • 优化
  • 矢量化
  • 嵌入式
  • 笔记本电脑
  • 服务器
  • 桌面
  • URL
  • 编译器主题
  • 错误检查
  • 提升性能
  • 主题专区: 

    IDZone
  • Windows*

  • Viewing all articles
    Browse latest Browse all 176

    Trending Articles



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