|
|
a93d5f |
diff -upr mpich-3.0.4/src/pm/hydra/configure.ac mpich-3.0.4.new/src/pm/hydra/configure.ac
|
|
|
a93d5f |
--- mpich-3.0.4/src/pm/hydra/configure.ac 2013-04-24 10:05:00.000000000 -0400
|
|
|
a93d5f |
+++ mpich-3.0.4.new/src/pm/hydra/configure.ac 2013-09-05 11:49:01.000000000 -0400
|
|
|
a93d5f |
@@ -10,28 +10,6 @@ AC_INIT([Hydra], MPICH_VERSION_m4)
|
|
|
a93d5f |
AC_CONFIG_AUX_DIR(confdb)
|
|
|
a93d5f |
AC_CONFIG_MACRO_DIR(confdb)
|
|
|
a93d5f |
|
|
|
a93d5f |
-# needed by hwloc in embedded mode. Must come very early to avoid
|
|
|
a93d5f |
-# bizarre expansion ordering warnings
|
|
|
a93d5f |
-AC_CANONICAL_TARGET
|
|
|
a93d5f |
-AC_ARG_PROGRAM
|
|
|
a93d5f |
-
|
|
|
a93d5f |
-dnl must come before LT_INIT, which AC_REQUIREs AC_PROG_CC
|
|
|
a93d5f |
-dnl must also come before AC_USE_SYSTEM_EXTENSIONS
|
|
|
a93d5f |
-PAC_PROG_CC
|
|
|
a93d5f |
-
|
|
|
a93d5f |
-# also needed by hwloc in embedded mode, must also come early for expansion
|
|
|
a93d5f |
-# ordering reasons
|
|
|
a93d5f |
-AC_USE_SYSTEM_EXTENSIONS
|
|
|
a93d5f |
-
|
|
|
a93d5f |
-# Define -D_DARWIN_C_SOURCE on OS/X to ensure that hwloc will build even if we
|
|
|
a93d5f |
-# are building under MPICH with --enable-strict that defined _POSIX_C_SOURCE.
|
|
|
a93d5f |
-# Some standard Darwin headers don't build correctly under a strict posix
|
|
|
a93d5f |
-# environment.
|
|
|
a93d5f |
-AS_CASE([$host],
|
|
|
a93d5f |
- [*-*-darwin*], [PAC_APPEND_FLAG([-D_DARWIN_C_SOURCE],[CPPFLAGS])]
|
|
|
a93d5f |
-)
|
|
|
a93d5f |
-
|
|
|
a93d5f |
-
|
|
|
a93d5f |
AM_INIT_AUTOMAKE([-Wall -Werror foreign 1.12.3])
|
|
|
a93d5f |
|
|
|
a93d5f |
AM_PROG_AR
|
|
|
a93d5f |
@@ -353,54 +331,16 @@ AC_MSG_RESULT([$hydra_topolib_list])
|
|
|
a93d5f |
|
|
|
a93d5f |
hydra_topolibs="`echo $hydra_topolib_list | sed -e 's/:/ /g' -e 's/,/ /g'`"
|
|
|
a93d5f |
|
|
|
a93d5f |
-# Unconditionally include the hwloc macros, even if we are using an
|
|
|
a93d5f |
-# external hwloc (or hwloc is disabled). This is needed for the
|
|
|
a93d5f |
-# AM_CONDITIONALS that we will set later.
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc.m4])
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc_check_attributes.m4])
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc_check_visibility.m4])
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc_check_vendor.m4])
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc_components.m4])
|
|
|
a93d5f |
-m4_include([tools/topo/hwloc/hwloc/config/hwloc_pkg.m4])
|
|
|
a93d5f |
-
|
|
|
a93d5f |
have_hwloc=no
|
|
|
a93d5f |
-for hydra_topolib in ${hydra_topolibs}; do
|
|
|
a93d5f |
- case "$hydra_topolib" in
|
|
|
a93d5f |
- hwloc)
|
|
|
a93d5f |
- if test "$with_hwloc_prefix" = "embedded" ; then
|
|
|
a93d5f |
- HWLOC_SETUP_CORE([tools/topo/hwloc/hwloc],[have_hwloc=yes],[have_hwloc=no],[1])
|
|
|
a93d5f |
- # Only build hwloc in embedded mode
|
|
|
a93d5f |
- if test "$have_hwloc" = "yes" ; then
|
|
|
a93d5f |
- hydra_use_embedded_hwloc=yes
|
|
|
a93d5f |
- CFLAGS="$HWLOC_EMBEDDED_CFLAGS $CFLAGS"
|
|
|
a93d5f |
- CPPFLAGS="$HWLOC_EMBEDDED_CPPFLAGS $CPPFLAGS"
|
|
|
a93d5f |
- LIBS="$HWLOC_EMBEDDED_LIBS $LIBS"
|
|
|
a93d5f |
- fi
|
|
|
a93d5f |
- else
|
|
|
a93d5f |
- AC_CHECK_HEADERS([hwloc.h])
|
|
|
a93d5f |
- # hwloc_topology_set_pid was added in hwloc-1.0.0, which is our minimum
|
|
|
a93d5f |
- # required version
|
|
|
a93d5f |
- AC_CHECK_LIB([hwloc],[hwloc_topology_set_pid])
|
|
|
a93d5f |
- AC_MSG_CHECKING([if non-embedded hwloc works])
|
|
|
a93d5f |
- if test "$ac_cv_header_hwloc_h" = "yes" -a "$ac_cv_lib_hwloc_hwloc_topology_set_pid" = "yes" ; then
|
|
|
a93d5f |
- have_hwloc=yes
|
|
|
a93d5f |
- fi
|
|
|
a93d5f |
- AC_MSG_RESULT([$have_hwloc])
|
|
|
a93d5f |
- fi
|
|
|
a93d5f |
-
|
|
|
a93d5f |
- # FIXME: Disable hwloc on Cygwin for now. The hwloc package, atleast as of 1.0.2,
|
|
|
a93d5f |
- # does not install correctly on Cygwin
|
|
|
a93d5f |
- AS_CASE([$host], [*-*-cygwin], [have_hwloc=no])
|
|
|
a93d5f |
-
|
|
|
a93d5f |
- if test "$have_hwloc" = "yes" ; then
|
|
|
a93d5f |
- AC_DEFINE(HAVE_HWLOC,1,[Define if hwloc is available])
|
|
|
a93d5f |
- available_topolibs="$available_topolibs hwloc"
|
|
|
a93d5f |
- fi
|
|
|
a93d5f |
- ;;
|
|
|
a93d5f |
- *)
|
|
|
a93d5f |
- ;;
|
|
|
a93d5f |
- esac
|
|
|
a93d5f |
-done
|
|
|
a93d5f |
+AC_CHECK_HEADERS([hwloc.h])
|
|
|
a93d5f |
+# hwloc_topology_set_pid was added in hwloc-1.0.0, which is our minimum
|
|
|
a93d5f |
+# required version
|
|
|
a93d5f |
+AC_CHECK_LIB([hwloc],[hwloc_topology_set_pid])
|
|
|
a93d5f |
+AC_MSG_CHECKING([if non-embedded hwloc works])
|
|
|
a93d5f |
+if test "$ac_cv_header_hwloc_h" = "yes" -a "$ac_cv_lib_hwloc_hwloc_topology_set_pid" = "yes" ; then
|
|
|
a93d5f |
+ have_hwloc=yes
|
|
|
a93d5f |
+fi
|
|
|
a93d5f |
+AC_MSG_RESULT([$have_hwloc])
|
|
|
a93d5f |
|
|
|
a93d5f |
tmp_list=
|
|
|
a93d5f |
for hydra_topolib in ${available_topolibs}; do
|
|
|
a93d5f |
@@ -424,7 +364,6 @@ fi
|
|
|
a93d5f |
|
|
|
a93d5f |
HWLOC_DO_AM_CONDITIONALS
|
|
|
a93d5f |
AM_CONDITIONAL([hydra_have_hwloc], [test "${have_hwloc}" = "yes"])
|
|
|
a93d5f |
-AM_CONDITIONAL([hydra_use_embedded_hwloc], [test "${hydra_use_embedded_hwloc}" = "yes"])
|
|
|
a93d5f |
|
|
|
a93d5f |
AC_MSG_CHECKING([available processor topology libraries])
|
|
|
a93d5f |
AC_MSG_RESULT([$available_topolibs])
|
|
|
a93d5f |
diff -upr mpich-3.0.4/src/pm/hydra/autogen.sh mpich-3.0.4.new/src/pm/hydra/autogen.sh
|
|
|
a93d5f |
--- mpich-3.0.4/src/pm/hydra/autogen.sh 2013-04-24 10:05:00.000000000 -0400
|
|
|
a93d5f |
+++ mpich-3.0.4.new/src/pm/hydra/autogen.sh 2013-09-05 11:50:18.000000000 -0400
|
|
|
a93d5f |
@@ -8,8 +8,6 @@ fi
|
|
|
a93d5f |
|
|
|
a93d5f |
echo "=== running autoreconf in 'mpl' ==="
|
|
|
a93d5f |
(cd mpl && $autoreconf ${autoreconf_args:-"-vif"})
|
|
|
a93d5f |
-echo "=== running autoreconf in 'tools/topo/hwloc/hwloc' ==="
|
|
|
a93d5f |
-(cd tools/topo/hwloc/hwloc && $autoreconf ${autoreconf_args:-"-vif"})
|
|
|
a93d5f |
$autoreconf ${autoreconf_args:-"-vif"}
|
|
|
a93d5f |
|
|
|
a93d5f |
# Remove the autom4te.cache folders for a release-like structure.
|