Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the ISP test suite (not free, superseeded by MBI)
[simgrid.git] / teshsuite / smpi / isp / umpire / comm-bcast-deadlock.c
diff --git a/teshsuite/smpi/isp/umpire/comm-bcast-deadlock.c b/teshsuite/smpi/isp/umpire/comm-bcast-deadlock.c
deleted file mode 100644 (file)
index 342e3b0..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C; -*- */
-/* Creator: Bronis R. de Supinski (bronis@llnl.gov) Tue Aug 12 2003 */
-
-#ifndef lint
-static char *rcsid =
-  "$Header: /usr/gapps/asde/cvs-vault/umpire/tests/comm-bcast-deadlock.c,v 1.1 2003/09/02 15:57:49 bronis Exp $";
-#endif
-
-#include <stdio.h>
-#include <string.h>
-#include "mpi.h"
-
-#define buf_size 128
-
-int
-main (int argc, char **argv)
-{
-  int nprocs = -1;
-  int rank = -1;
-  MPI_Comm comm = MPI_COMM_WORLD;
-  char processor_name[128];
-  int namelen = 128;
-  MPI_Comm inverted_comm;
-  int bcast_rank;
-
-  /* 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);
-
-  MPI_Barrier (MPI_COMM_WORLD);
-
-  if (nprocs != 3)
-    {
-      printf ("Incorrect number of tasks; exactly 3 required\n");
-    }
-  else {
-    /* create inverted communicator... */
-    MPI_Comm_split (comm, 0, nprocs - rank, &inverted_comm);
-
-    if (rank == 1) {
-      MPI_Bcast (&rank, 1, MPI_INT, 1, inverted_comm);
-      MPI_Bcast (&bcast_rank, 1, MPI_INT, 2, comm);
-    }
-    else if (rank == 2) {
-      MPI_Bcast (&rank, 1, MPI_INT, 2, comm);
-      MPI_Bcast (&bcast_rank, 1, MPI_INT, 1, inverted_comm);
-    }
-    else {
-      MPI_Bcast (&bcast_rank, 1, MPI_INT, 2, comm);
-      MPI_Bcast (&bcast_rank, 1, MPI_INT, 1, inverted_comm);
-    }
-  }
-
-  MPI_Barrier (comm);
-
-  printf ("(%d) Finished normally\n", rank);
-
-  MPI_Finalize ();
-}
-
-/* EOF */