[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26347 - in gnunet: . contrib src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26347 - in gnunet: . contrib src/testbed |
Date: |
Thu, 7 Mar 2013 11:58:50 +0100 |
Author: harsha
Date: 2013-03-07 11:58:50 +0100 (Thu, 07 Mar 2013)
New Revision: 26347
Modified:
gnunet/configure.ac
gnunet/contrib/testbed_infiniband.conf
gnunet/src/testbed/Makefile.am
gnunet/src/testbed/gnunet-testbed-profiler.c
gnunet/src/testbed/testbed_api_hosts.c
gnunet/src/testbed/testbed_api_testbed.c
Log:
- remove unused code
Modified: gnunet/configure.ac
===================================================================
--- gnunet/configure.ac 2013-03-07 09:13:40 UTC (rev 26346)
+++ gnunet/configure.ac 2013-03-07 10:58:50 UTC (rev 26347)
@@ -965,48 +965,21 @@
# Test if we are building for superMUC
-llapi=0
AC_MSG_CHECKING(if testbed should use IBM LoadLeveler to run on SuperMUC)
-AC_ARG_WITH([ll],
- [AS_HELP_STRING([--with-ll=PFX],
- [use IBM LoadLeveler (installed at PFX) for running testbed on
SuperMUC]. Default is no)],
- [AC_MSG_RESULT([$with_ll])
- case $with_ll in
- no)
- ;;
- yes)
- AC_CHECK_HEADERS([llapi.h],
- AC_CHECK_LIB([llapi], [llsubmit],
- llapi=true,
- AC_MSG_ERROR(libllapi not found but --with-llapi given)),
- AC_MSG_ERROR(llapi.h not found but --with-llapi given))
- ;;
- *)
- LDFLAGS="-L$with_ll/lib $LDFLAGS"
- CPPFLAGS="-I$with_ll/include $CPPFLAGS"
- AC_CHECK_HEADERS([llapi.h],
- AC_CHECK_LIB([llapi], [llsubmit],
- llapi=true,
- AC_MSG_ERROR(libllapi not found but --with-llapi given)),
- AC_MSG_ERROR(llapi.h not found but --with-llapi given))
- ;;
- esac
- ],
- [AC_MSG_RESULT(--with-ll not specified)])
-AM_CONDITIONAL([WITH_LL], [test "x$llapi" = "xtrue"])
-if test "x$llapi" = "xtrue"
-then
- AC_DEFINE_UNQUOTED([WITH_LL], [$llapi], [Do we have to use IBM LoadLeveler])
- AC_CHECK_HEADERS([pwd.h],
- AC_CHECK_LIB([c],[getpwuid],,
- AC_MSG_ERROR(getpwid function not available in libc but is required)),
- AC_MSG_ERROR(pwd.h not found but is required),
- [[
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- ]])
-fi
+AC_ARG_ENABLE([ll],
+ [AS_HELP_STRING([--enable-ll],
+ [build GNUnet testbed for use with IBM LoadLeveler for running testbed
on
+ SuperMUC (default is NO)])],
+ [if `test "x$enable_ll" = "xno"`
+ then
+ ll=false
+ else
+ ll=true
+ fi],
+ [ll=false])
+AC_MSG_RESULT($enable_ll)
+AM_CONDITIONAL([ENABLE_LL], [test "x$ll" = "xtrue"])
+AC_DEFINE_UNQUOTED([ENABLE_LL], [$ll], [Build with LL support])
# should 'make check' run tests?
AC_MSG_CHECKING(whether to run tests)
Modified: gnunet/contrib/testbed_infiniband.conf
===================================================================
--- gnunet/contrib/testbed_infiniband.conf 2013-03-07 09:13:40 UTC (rev
26346)
+++ gnunet/contrib/testbed_infiniband.conf 2013-03-07 10:58:50 UTC (rev
26347)
@@ -1,7 +1,7 @@
[testbed]
AUTOSTART = NO
PORT = 12113
-ACCEPT_FROM = 127.0.0.1; 192.168.1.0/24;
+ACCEPT_FROM = 127.0.0.1; 10.6.0.0/16;
HOSTNAME = localhost
MAX_PARALLEL_TOPOLOGY_CONFIG_OPERATIONS = 5
OVERLAY_TOPOLOGY = RANDOM
Modified: gnunet/src/testbed/Makefile.am
===================================================================
--- gnunet/src/testbed/Makefile.am 2013-03-07 09:13:40 UTC (rev 26346)
+++ gnunet/src/testbed/Makefile.am 2013-03-07 10:58:50 UTC (rev 26347)
@@ -9,7 +9,7 @@
XLIB = -lgcov
endif
-if WITH_LL
+if ENABLE_LL
ll_binaries = \
gnunet-testbed-mpi-spawn
endif
Modified: gnunet/src/testbed/gnunet-testbed-profiler.c
===================================================================
--- gnunet/src/testbed/gnunet-testbed-profiler.c 2013-03-07 09:13:40 UTC
(rev 26346)
+++ gnunet/src/testbed/gnunet-testbed-profiler.c 2013-03-07 10:58:50 UTC
(rev 26347)
@@ -229,7 +229,7 @@
char *hostfile;
hostfile = NULL;
-#ifndef WITH_LL
+#if !ENABLE_LL
if (NULL == args[0])
{
fprintf (stderr, _("No hosts-file specified on command line\n"));
@@ -271,7 +271,7 @@
GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_cont_fails},
GNUNET_GETOPT_OPTION_END
};
-#ifdef WITH_LL
+#if ENABLE_LL
const char *binaryHelp = "gnunet-testbed-profiler [OPTIONS]";
#else
const char *binaryHelp = "gnunet-testbed-profiler [OPTIONS] hosts-file";
Modified: gnunet/src/testbed/testbed_api_hosts.c
===================================================================
--- gnunet/src/testbed/testbed_api_hosts.c 2013-03-07 09:13:40 UTC (rev
26346)
+++ gnunet/src/testbed/testbed_api_hosts.c 2013-03-07 10:58:50 UTC (rev
26347)
@@ -588,7 +588,7 @@
GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTBED_Host
***hosts)
{
-#ifndef WITH_LL
+#if !ENABLE_LL
LOG (GNUNET_ERROR_TYPE_ERROR,
_("The function %s is only available when compiled with (--with-ll)\n"),
__func__);
Modified: gnunet/src/testbed/testbed_api_testbed.c
===================================================================
--- gnunet/src/testbed/testbed_api_testbed.c 2013-03-07 09:13:40 UTC (rev
26346)
+++ gnunet/src/testbed/testbed_api_testbed.c 2013-03-07 10:58:50 UTC (rev
26347)
@@ -1050,7 +1050,7 @@
GNUNET_assert (num_peers > 0);
rc = GNUNET_malloc (sizeof (struct RunContext));
rc->cfg = GNUNET_CONFIGURATION_dup (cfg);
-#ifdef WITH_LL
+#if ENABLE_LL
rc->num_hosts = GNUNET_TESTBED_hosts_load_from_loadleveler (rc->cfg,
&rc->hosts);
if (0 == rc->num_hosts)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26347 - in gnunet: . contrib src/testbed,
gnunet <=