X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f186fd6470cd6853b97c53782c710745c628e810..28335d43a1e64d3a412e8d6b86e59a389852b0d1:/teshsuite/smpi/isp/umpire/change-send-buffer.c diff --git a/teshsuite/smpi/isp/umpire/change-send-buffer.c b/teshsuite/smpi/isp/umpire/change-send-buffer.c deleted file mode 100644 index e3c9d3ea3f..0000000000 --- a/teshsuite/smpi/isp/umpire/change-send-buffer.c +++ /dev/null @@ -1,109 +0,0 @@ -/* -*- Mode: C; -*- */ -/* Creator: Jeffrey Vetter (j-vetter@llnl.gov) Mon Nov 1 1999 */ -/* lost-request.c -- overwrite a request and essentially lose a synch point */ - -#ifndef lint -static char *rcsid = - "$Header: /usr/gapps/asde/cvs-vault/umpire/tests/change-send-buffer.c,v 1.3 2002/07/30 21:34:42 bronis Exp $"; -#endif - -#include -#include -#include "mpi.h" - -int -main (int argc, char **argv) -{ - int nprocs = -1; - int rank = -1; - int tag1 = 0; - int tag2 = 0; - MPI_Comm comm = MPI_COMM_WORLD; - char processor_name[128]; - int namelen = 128; - int buf0[128]; - int buf1[128]; - int i; - MPI_Request aReq[2]; - MPI_Status aStatus[2]; - - /* init */ - MPI_Init (&argc, &argv); - MPI_Comm_size (comm, &nprocs); - MPI_Comm_rank (comm, &rank); - MPI_Get_processor_name (processor_name, &namelen); - printf ("(%d) is alive on %s\n", rank, processor_name); - fflush (stdout); - for (i = 0; i < 128; i++) - { - buf0[i] = i; - buf1[i] = 127 - i; - } - - MPI_Barrier(MPI_COMM_WORLD); - - switch (rank) - { - case 0: - MPI_Isend (buf0, 128, MPI_INT, 1, tag1, comm, &aReq[0]); - MPI_Isend (buf1, 128, MPI_INT, 1, tag2, comm, &aReq[1]); - /* do some work here */ - - buf0[64] = 1000000; - - MPI_Wait (&aReq[0], &aStatus[0]); - MPI_Wait (&aReq[1], &aStatus[1]); - - break; - - case 1: - MPI_Irecv (buf0, 128, MPI_INT, 0, tag1, comm, &aReq[0]); - MPI_Irecv (buf1, 128, MPI_INT, 0, tag2, comm, &aReq[1]); - /* do some work here ... */ - MPI_Wait (&aReq[0], &aStatus[0]); - MPI_Wait (&aReq[1], &aStatus[1]); - break; - - default: - /* do nothing */ - break; - } - - - MPI_Barrier(MPI_COMM_WORLD); - - for (i = 0; i < 128; i++) - { - buf0[i] = i; - buf1[i] = 127 - i; - } - switch (rank) - { - case 0: - MPI_Isend (buf0, 128, MPI_INT, 1, tag1, comm, &aReq[0]); - MPI_Isend (buf1, 128, MPI_INT, 1, tag2, comm, &aReq[1]); - /* do some work here */ - - buf0[64] = 1000000; - - MPI_Waitall (2, aReq, aStatus); - - break; - - case 1: - MPI_Irecv (buf0, 128, MPI_INT, 0, tag1, comm, &aReq[0]); - MPI_Irecv (buf1, 128, MPI_INT, 0, tag2, comm, &aReq[1]); - /* do some work here ... */ - MPI_Waitall (2, aReq, aStatus); - break; - - default: - /* do nothing */ - break; - } - - MPI_Finalize (); - printf ("(%d) Finished normally\n", rank); -} - -/* EOF */