- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
! ifort version 2021.4.0
! ifort -coarray -coarray-num-images=5 test.f90 -o a.out
! compile time output:
!010101_13941
!catastrophic error: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.
!Note: File and line given may not be explicit cause of this error.
!compilation aborted for test.f90 (code 1)
module test
implicit none
private
type, public :: type_a
integer :: c ! also required to raise the compile time error
end type type_a
type, abstract, public :: test_type
private
! main cause of the compile time error,
! exchanging the sequence of these both lines will lead to proper compilation:
type (type_a), public :: x
integer, public, codimension[:], dimension (:,:), allocatable :: coarray_component
contains
private
end type test_type
contains
subroutine z (this)
class (test_type), intent (inout) :: this
integer :: image_number
integer :: array_index
integer, allocatable, dimension(:) :: integer_array
! also required to raise the compile time error:
this % coarray_component(:,array_index) [image_number] = integer_array
end subroutine z
end module test
program main
end program main
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reporting this issue. I forwarded the information to the Fortran compiler team with a bug id of CMPLRIL0-34375. I'll let you know when the fix is available.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ICE occurs only with multi-dimensional (more than 1 dimension) coarray components.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And also important, the ICE occurs only if the multi-dimensional coarray component is NOT at the top of other components. If the coarray component is at the top, ifort has no problems with it, even with much more sophisticated coarray codes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reporting this issue. I forwarded the information to the Fortran compiler team with a bug id of CMPLRIL0-34375. I'll let you know when the fix is available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ICE you reported using coarrays is fixed in the compiler that was recently released, ifort 2021.6.0. It's part of oneAPI 2022.2 in the HPC Toolkit. Check it out!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page