X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c81c99a491282f76757c2673961e3cdee6853539..b7dc075d2c3bdf2b384cb8897d16a4c0aa8ab0f7:/teshsuite/smpi/mpich-test/pt2pt/flood2.c diff --git a/teshsuite/smpi/mpich-test/pt2pt/flood2.c b/teshsuite/smpi/mpich-test/pt2pt/flood2.c deleted file mode 100644 index 855d38e669..0000000000 --- a/teshsuite/smpi/mpich-test/pt2pt/flood2.c +++ /dev/null @@ -1,215 +0,0 @@ -#include "mpi.h" -#include -#include -#include "test.h" - -#define MAX_REQ 32 -#define MAX_MSG_CNT 32000 -#define MAX_MSG 2048 -/* - This program tests a flood of data of short messages to test handling - of both incoming messages and internal message queues - */ - -void SetupData ( int *, int, int ); -void SetupRdata ( int *, int ); -int CheckData ( int *, int, int, MPI_Status * ); - -#ifdef VERBOSE -static int verbose = 1; -#else -static int verbose = 0; -#endif - - -int main( int argc, char **argv ) -{ - MPI_Comm comm; - MPI_Request r[MAX_REQ]; - MPI_Status s[MAX_REQ]; - int msgsize, maxmsg, root, i, j, size, rank, err = 0, msgcnt, toterr; - int *sbuf, *rbuf; - - MPI_Init( &argc, &argv ); - - comm = MPI_COMM_WORLD; - - MPI_Comm_size( comm, &size ); - MPI_Comm_rank( comm, &rank ); - - if (size < 2) { - printf( "This test requires at least 2 processors\n" ); - MPI_Abort( comm, 1 ); - } - - /* First, try large blocking sends to root */ - root = 0; - - maxmsg = MAX_MSG; - msgsize = 128; - msgcnt = MAX_MSG_CNT; - if (rank == root && verbose) printf( "Blocking sends: " ); - while (msgsize <= maxmsg) { - if (rank == root) { - if (verbose) { printf( "%d ", msgsize ); fflush( stdout ); } - rbuf = (int *)malloc( msgsize * sizeof(int) ); - if (!rbuf) { - printf( "Could not allocate %d words\n", msgsize ); - MPI_Abort( comm, 1 ); - } - for (i=0; i