[mpich-discuss] Waitany for Ibarrier and Irecv in sequential program
Nils-Arne Dreier
n.dreier at uni-muenster.de
Thu Jun 7 04:51:19 CDT 2018
Dear MPICH community,
the following program deadlocks when executed with MPICH 3.2 (Debian
stretch) on a single rank.
barrier_waitany.cc
#include <mpi.h>
int main(int argc, char** argv){
MPI_Request req[2];
int buf;
int index;
MPI_Init(&argc, &argv);
MPI_Ibarrier(MPI_COMM_WORLD, &req[0]);
MPI_Irecv(&buf, 1, MPI_INT, 0, 0, MPI_COMM_WORLD, &req[1]);
MPI_Waitany(2, req, &index, MPI_STATUS_IGNORE);
MPI_Finalize();
return 0;
}
Compile with:
mpic++ -g -std=c++14 -Wall mpi_barrier_waitany.cc -o mpi_barrier_waitany
Execute with:
mpirun -n 1 ./barrier_waitany
Best,
Nils
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5390 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20180607/82f25db8/attachment.p7s>
-------------- next part --------------
_______________________________________________
discuss mailing list discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss
More information about the discuss
mailing list