[mpich2-commits] r6759 - mpich2/trunk
goodell at mcs.anl.gov
goodell at mcs.anl.gov
Fri May 28 15:12:40 CDT 2010
Author: goodell
Date: 2010-05-28 15:12:40 -0500 (Fri, 28 May 2010)
New Revision: 6759
Modified:
mpich2/trunk/configure.in
Log:
fix bug that made OPA mandatory even for ch3:sock
Pass --with-atomic-primitives=auto_allow_emulation to the OPA configure
unless the user specifies a particular value.
This is a regression introduced in r6223, between 1.2.1p1 and 1.3a1.
Reviewed by balaji at .
Modified: mpich2/trunk/configure.in
===================================================================
--- mpich2/trunk/configure.in 2010-05-28 20:12:38 UTC (rev 6758)
+++ mpich2/trunk/configure.in 2010-05-28 20:12:40 UTC (rev 6759)
@@ -1005,7 +1005,19 @@
EXTERNAL_SRC_DIRS="$EXTERNAL_SRC_DIRS src/openpa"
CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/openpa/src -I${master_top_builddir}/src/openpa/src"
- PAC_CONFIG_SUBDIR(src/openpa,,AC_ERROR(OpenPA configure failed))
+ # OPA defaults to "auto", but in MPICH2 we want "auto_allow_emulation" to
+ # easily permit using channels like ch3:sock that don't care about atomics
+ AC_ARG_WITH([atomic-primitives],
+ [AS_HELP_STRING([--with-atomic-primitives],
+ [Force OPA to use a specific atomic primitives
+ implementation. See the src/openpa directory
+ for more info.])],
+ [],[with_atomic_primitives=not_specified])
+ opa_subdir_args=""
+ if test "$with_atomic_primitives" = "not_specified" ; then
+ opa_subdir_args="--with-atomic-primitives=auto_allow_emulation"
+ fi
+ PAC_CONFIG_SUBDIR_ARGS([src/openpa],[$opa_subdir_args],[],[AC_ERROR([OpenPA configure failed])])
PAC_PREPEND_FLAG([-lopa],[WRAPPER_LIBS])
other_install_dirs="$other_install_dirs src/openpa"
More information about the mpich2-commits
mailing list