--disable-directcopy in mpich
Pete Wyckoff <[email protected]>
| Newsgroups | gmane.network.myrinet.general |
|---|---|
| Message-ID | <[email protected]> |
The CVS version of GM will lockup our quad processor x86 linux boxes if
directcopy is enabled. While I'm trying to figure this out, for
production we disable the option.
Mpich, though, doesn't detect this and always forces the use of
directcopy, making it incompatible with GM. Here's the smallest
patch that adds a --disable-directcopy option to mpich, against
today's CVS.
Ideally mpich configure would be taught to go grepping through the
GM build tree to determine if it should do directcopy or not. For
now, would you add this to the tree?
Thanks,
-- Pete
Index: configure.in
===================================================================
RCS file: /ufs/src/repositories/mpich/configure.in,v
retrieving revision 1.21
diff -u -r1.21 configure.in
--- configure.in 2001/02/15 23:33:44 1.21
+++ configure.in 2001/02/16 14:56:35
@@ -1060,6 +1060,10 @@
SMP_PLUG=1
;;
+ --disable-directcopy )
+ SMP_DISABLE_DIRECTCOPY=1
+ ;;
+
-with-romio* | --with-romio*)
withval=`echo $arg | sed 's/-*with-romio[=]*//g'`
ROMIO_ARGS="$ROMIO_ARGS $withval"
@@ -1779,6 +1783,7 @@
if test -n "$SMP_PLUG" ; then
AC_DEFINE(SMP_PLUG)
+ if test -z "$SMP_DISABLE_DIRECTCOPY" ; then
if test "$ARCH" = "LINUX"; then
AC_DEFINE(SMP_ENABLE_DIRECTCOPY)
echo "smp directcopy enabled"
@@ -1786,6 +1791,9 @@
if test "$ARCH" = "LINUX_ALPHA"; then
AC_DEFINE(SMP_ENABLE_DIRECTCOPY)
echo "smp directcopy enabled"
+ fi
+ else
+ echo "smp directcopy forced disabled"
fi
fi
Index: configure
===================================================================
RCS file: /ufs/src/repositories/mpich/configure,v
retrieving revision 1.22
diff -u -r1.22 configure
--- configure 2001/02/15 23:34:46 1.22
+++ configure 2001/02/16 14:56:35
@@ -1065,6 +1065,10 @@
SMP_PLUG=1
;;
+ --disable-directcopy )
+ SMP_DISABLE_DIRECTCOPY=1
+ ;;
+
-with-romio* | --with-romio*)
withval=`echo $arg | sed 's/-*with-romio[=]*//g'`
ROMIO_ARGS="$ROMIO_ARGS $withval"
@@ -6465,6 +6469,7 @@
"
}
+ if test -z "$SMP_DISABLE_DIRECTCOPY" ; then
if test "$ARCH" = "LINUX"; then
{
@@ -6495,6 +6500,9 @@
echo "smp directcopy enabled"
fi
+ else
+ echo "smp directcopy forced disabled"
+ fi
fi
fi