We are having problems trying to get a small Fortran 90/coarray program shown below to run under Intel 12.1 with intelmpi-4.0.3 on a 64-bit SGI-ICE system (Intel Xenons) running under PBS.
The compilation line for the small test program is also shown below. The small program runs fine on a Cray XT6 with PGI Fortran compilers.
There are two if statements down near the bottom of the program, the first one works, but the second one
causes a segmentation fault with Intel 12.1. We do have unlimit in the script and $HOME/.csrhc.
Do you know what could be going wrong? Does ifort12.1 not support coarray pointers?
mpif90 -O0 -no-opt-prefetch -coarray=distributed -fpe0 -g -check all -traceback -o test test.o
integer, pointer :: a
end type p2a
integer , allocatable :: a[:]
type (p2a), allocatable :: p[:]
integer , target :: ta
integer :: ipr,npr,b,c
p%a => ta
if (ipr.lt.npr) b=a[ipr+1]
if (ipr.lt.npr) c=p[ipr+1]%a ! works on cray, but seg-faults with Intel 12.1