Re: [OMPI users] MPI_Iallreduce with multidimensional Fortran array

2019-11-13 Thread Camille Coti via users
Dear Gilles, Thank you very much for your clear answer. Camille On 11/13/19 5:40 PM, Gilles Gouaillardet via users wrote: Camille, your program is only valid with a MPI library that features |MPI_SUBARRAYS_SUPPORTED| and this is not (yet) the case in Open MPI. A possible fix is to use a

Re: [OMPI users] MPI_Iallreduce with multidimensional Fortran array

2019-11-13 Thread Gilles Gouaillardet via users
Camille, your program is only valid with a MPI library that features |MPI_SUBARRAYS_SUPPORTED| and this is not (yet) the case in Open MPI. A possible fix is to use an intermediate contiguous buffer   integer, allocatable, dimension(:,:,:,:) :: tmp   allocate( tmp(N,N,N,N) ) and then repla