X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fff5fbf696a8eaf8a7f230c4e15c763db690bcc3..28335d43a1e64d3a412e8d6b86e59a389852b0d1:/teshsuite/smpi/isp/umpire/complex-deadlock.c diff --git a/teshsuite/smpi/isp/umpire/complex-deadlock.c b/teshsuite/smpi/isp/umpire/complex-deadlock.c deleted file mode 100644 index 6981e60bdd..0000000000 --- a/teshsuite/smpi/isp/umpire/complex-deadlock.c +++ /dev/null @@ -1,68 +0,0 @@ -/* -*- Mode: C; -*- */ -/* Creator: Bronis R. de Supinski (bronis@llnl.gov) Fri Mar 17 2000 */ -/* no-error.c -- do some MPI calls without any errors */ - -#include -#include "mpi.h" - -#define buf_size 128 - -int -main (int argc, char **argv) -{ - int nprocs = -1; - int rank = -1; - char processor_name[128]; - int namelen = 128; - int buf0[buf_size]; - int buf1[buf_size]; - int zero_to_two; - MPI_Status status; - - /* init */ - MPI_Init (&argc, &argv); - MPI_Comm_size (MPI_COMM_WORLD, &nprocs); - MPI_Comm_rank (MPI_COMM_WORLD, &rank); - MPI_Get_processor_name (processor_name, &namelen); - printf ("(%d) is alive on %s\n", rank, processor_name); - fflush (stdout); - - MPI_Barrier (MPI_COMM_WORLD); - - if (nprocs < 3) - { - printf ("not enough tasks\n"); - } - else if (rank == 0) - { - memset (buf0, 0, buf_size); - - zero_to_two = 1; - - MPI_Send (&zero_to_two, 1, MPI_INT, 2, 0, MPI_COMM_WORLD); - - MPI_Recv (buf1, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD, &status); - - MPI_Send (buf0, buf_size, MPI_INT, 1, 0, MPI_COMM_WORLD); - } - else if (rank == 1) - { - memset (buf1, 1, buf_size); - - MPI_Recv (buf0, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD, &status); - - MPI_Send (buf1, buf_size, MPI_INT, 0, 0, MPI_COMM_WORLD); - } - else if (rank == 2) - { - - MPI_Recv (&zero_to_two, 1, MPI_INT, 0, 0, MPI_COMM_WORLD, &status); - } - - MPI_Barrier (MPI_COMM_WORLD); - - MPI_Finalize (); - printf ("(%d) Finished normally\n", rank); -} - -/* EOF */