Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

ICE with ifort 16.0 with heap-arrays & openmp

$
0
0

Hello,

i stumbled upon an ICE with the Fortran Compiler 16.0.110. The following Code produces the error "fortcom: Fatal: There has been an internal compiler error (C0000005)."

! ifort.exe /nologo /Qopenmp /heap-arrays /module:obj\Release\ /c ICE_OMP_M.f90 /object:obj\Release\ICE_OMP_M.obj
module test_mod

  type :: T_TYPE
    real :: matrix(500,500) ! happens with allocatable, too
  end type T_TYPE

contains

  subroutine calc(this)
    type(T_TYPE), intent(inout) :: this

    integer :: i

    !$omp parallel do
    do i = 2,500
      ! The same happens for minval and maxval (maybe others, too)
      this%matrix(i-1:i,i) = sum(this%matrix(i-1:i,:), dim=2)
    end do
    !$omp end parallel do

  end subroutine calc

end module test_mod

It compiles, if one of the Options /heap-arrays or /Qopenmp is omitted.

This worked well with the 15.x Compiler.

Greetings and thanks,

Wolf


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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