[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25318 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25318 - gnunet/src/testbed |
Date: |
Fri, 7 Dec 2012 19:14:58 +0100 |
Author: harsha
Date: 2012-12-07 19:14:58 +0100 (Fri, 07 Dec 2012)
New Revision: 25318
Modified:
gnunet/src/testbed/Makefile.am
gnunet/src/testbed/gnunet_mpi_test.c
Log:
- remove MPI code
Modified: gnunet/src/testbed/Makefile.am
===================================================================
--- gnunet/src/testbed/Makefile.am 2012-12-07 17:57:48 UTC (rev 25317)
+++ gnunet/src/testbed/Makefile.am 2012-12-07 18:14:58 UTC (rev 25318)
@@ -10,7 +10,6 @@
endif
if WITH_LL
- CC = mpcc
ll_noinst_binaries = \
ll-master \
ll-monitor
Modified: gnunet/src/testbed/gnunet_mpi_test.c
===================================================================
--- gnunet/src/testbed/gnunet_mpi_test.c 2012-12-07 17:57:48 UTC (rev
25317)
+++ gnunet/src/testbed/gnunet_mpi_test.c 2012-12-07 18:14:58 UTC (rev
25318)
@@ -1,6 +1,5 @@
#include "platform.h"
#include "gnunet_util_lib.h"
-#include <mpi.h>
/**
* Generic logging shorthand
@@ -14,21 +13,15 @@
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 @@
ret = GNUNET_OK;
finalize:
- (void) MPI_Finalize ();
return (GNUNET_OK == ret) ? 0 : 1;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25318 - gnunet/src/testbed,
gnunet <=