Dear all,
I have a little piece of code shown below that initializes a
multidimensional Fortran array and performs:
- a non-blocking MPI_Iallreduce immediately followed by an MPI_Wait
- a blocking MPI_Allreduce
After both calls, it displays a few elements of the input and output
buffers.
In
MPI_Iallreduce completes, and hence **before** MPI_Wait() completes,
so the behavior of such a program is undefined.
Cheers,
Gilles
On 11/14/2019 9:42 AM, Camille Coti via users wrote:
Dear all,
I have a little piece of code shown below that initializes a
multidimensional Fortran array