X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e791988d14b020b847a39f72da8062fea90bb3b5:/teshsuite/smpi/pingpong/dsend.c..b0ab0c5a91c78404c76b02acf058c7a762934c74:/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c diff --git a/teshsuite/smpi/pingpong/dsend.c b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c similarity index 96% rename from teshsuite/smpi/pingpong/dsend.c rename to teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c index 30d63893cc..4a1f8b9845 100644 --- a/teshsuite/smpi/pingpong/dsend.c +++ b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c @@ -14,15 +14,13 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test"); int main(int argc, char *argv[]) { int rank; int data=11; - MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &rank); - + if (rank==1) { data=22; MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD); -// smpi_sleep(1000); } else { MPI_Recv(&data,1,MPI_INT,MPI_ANY_SOURCE,666,MPI_COMM_WORLD,NULL); if (data !=22) {