X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0a9c75622e2b5755f7e95f79f6cdd241fd8cefe:/teshsuite/smpi/pingpong.c..9c5a3a5cae5517b0bff451bfe850395e8665e84a:/teshsuite/smpi/pingpong/pingpong.c diff --git a/teshsuite/smpi/pingpong.c b/teshsuite/smpi/pingpong/pingpong.c similarity index 95% rename from teshsuite/smpi/pingpong.c rename to teshsuite/smpi/pingpong/pingpong.c index 7d2677f008..ab3f440761 100644 --- a/teshsuite/smpi/pingpong.c +++ b/teshsuite/smpi/pingpong/pingpong.c @@ -43,23 +43,23 @@ int main(int argc, char *argv[]) pivot + 1); int dst = rank + 1; - printf("[%d] About to send 1st message '%d' to process [%d] \n", + printf("[%d] About to send 1st message '%d' to process [%d]\n", rank, msg, dst); err = MPI_Send(&msg, 1, MPI_INT, dst, tag1, MPI_COMM_WORLD); err = MPI_Recv(&msg, 1, MPI_INT, dst, tag2, MPI_COMM_WORLD, &status); /* Receive a message */ - printf("[%d] Received reply message '%d' from process [%d] \n", rank, + printf("[%d] Received reply message '%d' from process [%d]\n", rank, msg, dst); } if ((pivot + 1) == rank) { int src = rank - 1; err = MPI_Recv(&msg, 1, MPI_INT, src, tag1, MPI_COMM_WORLD, &status); /* Receive a message */ - printf("[%d] Received 1st message '%d' from process [%d] \n", rank, + printf("[%d] Received 1st message '%d' from process [%d]\n", rank, msg, src); msg++; printf("[%d] increment message's value to '%d'\n", rank, msg); - printf("[%d] About to send back message '%d' to process [%d] \n", + printf("[%d] About to send back message '%d' to process [%d]\n", rank, msg, src); err = MPI_Send(&msg, 1, MPI_INT, src, tag2, MPI_COMM_WORLD); }