X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c81c99a491282f76757c2673961e3cdee6853539..b7dc075d2c3bdf2b384cb8897d16a4c0aa8ab0f7:/teshsuite/smpi/mpich-test/pt2pt/sendrecv4.c?ds=sidebyside diff --git a/teshsuite/smpi/mpich-test/pt2pt/sendrecv4.c b/teshsuite/smpi/mpich-test/pt2pt/sendrecv4.c deleted file mode 100644 index a4e5a05f51..0000000000 --- a/teshsuite/smpi/mpich-test/pt2pt/sendrecv4.c +++ /dev/null @@ -1,175 +0,0 @@ -#include "mpi.h" -#include -#include "dtypes.h" -#include "gcomm.h" - -#if defined(NEEDS_STDLIB_PROTOTYPES) -#include "protofix.h" -#endif - -int verbose = 0; -/* - This program is from mpich/tsuite/pt2pt and should be changed there only. - It needs gcomm and dtype from mpich/tsuite, and can be run with - any number of processes > 1. - - This version sends and receives EVERYTHING from MPI_BOTTOM, by putting - the data into a structure. - - This code isn't quite correct, since the MPI_Type_struct that is - created for the type may not have the correct extent. - One possible change is to make the struct type include the count, and - send/receive one instance of the data item. - - The GenerateData call should return extents; when the extent of the - created structure doesn't match, we can at least issue an error message. - */ -int main( int argc, char **argv ) -{ -MPI_Datatype *types; -void **inbufs, **outbufs; -char **names; -int *counts, *bytesize, ntype; -MPI_Comm comms[20]; -int ncomm = 20, rank, np, partner, tag, count; -int i, j, k, err, toterr, world_rank, errloc; -MPI_Status status; -char *obuf; -MPI_Datatype offsettype; -int blen; -MPI_Aint displ, extent, natural_extent; - -MPI_Init( &argc, &argv ); - -AllocateForData( &types, &inbufs, &outbufs, &counts, &bytesize, - &names, &ntype ); -GenerateData( types, inbufs, outbufs, counts, bytesize, names, &ntype ); - -MPI_Comm_rank( MPI_COMM_WORLD, &world_rank ); -MakeComms( comms, 20, &ncomm, 0 ); - -/* Test over a wide range of datatypes and communicators */ -err = 0; -for (i=0; i 0) { - fprintf( stderr, "%d errors on %d\n", err, rank ); - } -MPI_Allreduce( &err, &toterr, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD ); - if (world_rank == 0) { - if (toterr == 0) { - printf( " No Errors\n" ); - } - else { - printf (" Found %d errors\n", toterr ); - } - } - -FreeDatatypes( types, inbufs, outbufs, counts, bytesize, names, ntype ); -FreeComms( comms, ncomm ); -MPI_Finalize(); -return err; -}