I have this program, and would expect this to print 1 2 when run with 2 images. However, it prints 1 1 on one image, and 1 2 on the other.
program main
implicit none
double precision, allocatable :: a[:]
allocate(a[*])
a = this_image()
sync all
write(*, *) this_image(), a[1], a[2]
deallocate(a)
end program main
It is compiled with gfortran -fcoarray=lib minimal.f90 -lcaf_mpich
and run with mpirun.mpich -n 2 ./a.out
I am using gfortran 12.2.0, and OpenCoarrays version 2.10.1 with MPICH 4.0.2
Exact output is
1 1.0000000000000000 1.0000000000000000
2 1.0000000000000000 2.0000000000000000
[1689752680.508753] [thomas-laptop:14602:0] tag_match.c:62 UCX WARN unexpected tag-receive descriptor 0x55b38d7fb8c0 was not matched
[1689752680.509388] [thomas-laptop:14601:0] tag_match.c:62 UCX WARN unexpected tag-receive descriptor 0x564edbce58c0 was not matched