Deadlock mit MPI

Ich experimentiere mit MPI und Frage mich, ob dieser code kann einen deadlock verursachen.

MPI_Comm_rank (comm, &my_rank);
if (my_rank == 0) {
   MPI_Send (sendbuf, count, MPI_INT, 1, tag, comm);
   MPI_Recv (recvbuf, count, MPI_INT, 1, tag, comm, &status);
} else if (my_rank == 1) {
   MPI_Send (sendbuf, count, MPI_INT, 0, tag, comm);
   MPI_Recv (recvbuf, count, MPI_INT, 0, tag, comm, &status);
}
InformationsquelleAutor user1170330 | 2013-12-08
Schreibe einen Kommentar