X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a36e8044de323971221f5da46773d54e312d3b3c..28335d43a1e64d3a412e8d6b86e59a389852b0d1:/teshsuite/smpi/isp/umpire/bcast-deadlock.c diff --git a/teshsuite/smpi/isp/umpire/bcast-deadlock.c b/teshsuite/smpi/isp/umpire/bcast-deadlock.c deleted file mode 100644 index 6798490fb9..0000000000 --- a/teshsuite/smpi/isp/umpire/bcast-deadlock.c +++ /dev/null @@ -1,43 +0,0 @@ - - -#include -#include -#include "mpi.h" - -#define buf_size 128 - -int -main (int argc, char **argv) -{ - int rank; - MPI_Comm comm = MPI_COMM_WORLD; - char processor_name[128]; - int namelen = 128; - int buf0[buf_size]; - int buf1[buf_size]; - - /* init */ - MPI_Init (&argc, &argv); - MPI_Comm_rank (comm, &rank); - MPI_Get_processor_name (processor_name, &namelen); - printf ("(%d) is alive on %s\n", rank, processor_name); - fflush (stdout); - - if (rank == 0) { - memset (buf0, 0, buf_size); - MPI_Bcast (buf0, buf_size, MPI_INT, 1, MPI_COMM_WORLD); - MPI_Bcast (buf0, buf_size, MPI_INT, 0, MPI_COMM_WORLD); - } - else { - if (rank == 1) - memset (buf1, 1, buf_size); - - MPI_Bcast (buf0, buf_size, MPI_INT, 0, MPI_COMM_WORLD); - MPI_Bcast (buf0, buf_size, MPI_INT, 1, MPI_COMM_WORLD); - } - - MPI_Finalize (); - printf ("(%d) Finished normally\n", rank); -} - -/* EOF */