From: Sree Harsha Totakura Date: Fri, 7 Dec 2012 18:14:58 +0000 (+0000) Subject: - remove MPI code X-Git-Tag: initial-import-from-subversion-38251~10563 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24f093b9c446d733e2f281972f080729e1ede160;p=oweals%2Fgnunet.git - remove MPI code --- diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am index f267a464f..d2082e1a7 100644 --- a/src/testbed/Makefile.am +++ b/src/testbed/Makefile.am @@ -10,7 +10,6 @@ if USE_COVERAGE endif if WITH_LL - CC = mpcc ll_noinst_binaries = \ ll-master \ ll-monitor diff --git a/src/testbed/gnunet_mpi_test.c b/src/testbed/gnunet_mpi_test.c index 1e1608228..9229675ce 100644 --- a/src/testbed/gnunet_mpi_test.c +++ b/src/testbed/gnunet_mpi_test.c @@ -1,6 +1,5 @@ #include "platform.h" #include "gnunet_util_lib.h" -#include /** * Generic logging shorthand @@ -14,21 +13,15 @@ int main (int argc, char *argv[]) char *filename; pid_t pid; pid_t ppid; - int ntasks; int rank; int msg_size; int ret; ret = GNUNET_SYSERR; - if (MPI_SUCCESS != MPI_Init (&argc, &argv)) - return 1; - if (MPI_SUCCESS != MPI_Comm_size (MPI_COMM_WORLD, &ntasks)) - goto finalize; - if (MPI_SUCCESS != MPI_Comm_rank (MPI_COMM_WORLD, &rank)) - goto finalize; + rank = 0; pid = getpid(); (void) GNUNET_asprintf (&filename, "%d-%d.mpiout", (int) pid, rank); - msg_size = GNUNET_asprintf (&msg, "My rank is: %d\n", rank); + msg_size = GNUNET_asprintf (&msg, "My pid is: %d\n", pid); printf ("%s", msg); if (msg_size == GNUNET_DISK_fn_write (filename, msg, msg_size, @@ -91,6 +84,5 @@ int main (int argc, char *argv[]) ret = GNUNET_OK; finalize: - (void) MPI_Finalize (); return (GNUNET_OK == ret) ? 0 : 1; }