Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

ifort 18 beta: severe bug with the SYNC IMAGES statement

Michael_S_17
New Contributor I
226 Views

I am using ifort 18 beta update 1 on Linux Ubuntu and did observe a severe bug with the SYNC IMAGES statement yet. Can someone confirm that the following program does work with ifort 17 but does not execute if compiled with ifort 18 beta yet?

ifort -coarray -coarray-num-images=2 Main.f90 -o a.out

program Main
  !
  if (this_image() == 1) then
    sync images(*)
  else
    sync images(1)
  end if
  !
end program Main

With ifort 18 beta I am getting the following runtime error:

forrtl: severe (778): One of the images to be synchronized with has terminated.
In coarray image 2
Image              PC                Routine            Line        Source             
libicaf.so         00007EFD79C4D607  for_rtl_ICAF_BARR     Unknown  Unknown
a.out              0000000000403CD4  Unknown               Unknown  Unknown
a.out              0000000000403C62  Unknown               Unknown  Unknown
libc-2.19.so       00007EFD7937BF45  __libc_start_main     Unknown  Unknown
a.out              0000000000403B69  Unknown               Unknown  Unknown

forrtl: severe (778): One of the images to be synchronized with has terminated.
In coarray image 1
Image              PC                Routine            Line        Source             
libicaf.so         00007FAED9063607  for_rtl_ICAF_BARR     Unknown  Unknown
libicaf.so         00007FAED906333E  for_rtl_ICAF_BARR     Unknown  Unknown
a.out              0000000000403CE7  Unknown               Unknown  Unknown
a.out              0000000000403C62  Unknown               Unknown  Unknown
libc-2.19.so       00007FAED8791F45  __libc_start_main     Unknown  Unknown
a.out              0000000000403B69  Unknown               Unknown  Unknown

application called MPI_Abort(comm=0x84000004, 3) - process 0

(As an aside: It took some time to identify the source of this error, because I do not use SYNC IMAGES regularly and only together with customized synchronization procedures (using sync memory and atomic subroutines) within the same program.)

Best Regards

0 Kudos
3 Replies
Devorah_H_Intel
Moderator
226 Views

Hello Michael,

Thank you for the report. I escalated this to the development. In future, this kind of report is best to be submitted via our Online Service Center at https://supporttickets.intel.com/  

0 Kudos
Michael_S_17
New Contributor I
226 Views

Hi Devorah,

Thanks for the effort on this. For future bug reports I will directly submit via the Online Service Center.

Best Regards

0 Kudos
Devorah_H_Intel
Moderator
226 Views

This has been fixed in 18.0.

0 Kudos
Reply