summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2006-03-09 14:54:35 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2006-03-09 14:54:35 (GMT)
commit5f0decf37128dfd7390196ab38cf922e33221279 (patch)
treec440d0bf84215d068a5e07e14b728fa16926a5e7
parent0f0a5eb91807e3541aacba55905cf72ac19f0aad (diff)
downloadhdf5-5f0decf37128dfd7390196ab38cf922e33221279.zip
hdf5-5f0decf37128dfd7390196ab38cf922e33221279.tar.gz
hdf5-5f0decf37128dfd7390196ab38cf922e33221279.tar.bz2
[svn-r12045] Purpose:
Setting appropriate macro during configuration. Description: We found special collective IO doesn't work in mpich 1.2.5 and 1.2.6. Solution: Use this script to detect this during configuration and set the correct macro. Platforms tested: heping,mir and copper Misc. update:
-rw-r--r--config/mpich28
1 files changed, 28 insertions, 0 deletions
diff --git a/config/mpich b/config/mpich
index 4c48a2d..ad2e592 100644
--- a/config/mpich
+++ b/config/mpich
@@ -52,3 +52,31 @@ if [ -z "$hdf5_mpi_complex_derived_datatype_works" ]; then
esac
fi
fi
+
+if [ -z "$hdf5_mpi_special_collective_io_works" ]; then
+ ccversion=`$CC -v 2>/dev/null`
+ # mpich compiler will give "mpicc for 1.2.x ..."
+ if echo "$ccversion" | grep '^mpicc for' > /dev/null ; then
+ # $CC is an MPICH compiler. Grab the version numbers.
+ ccversion=`echo $ccversion | cut -f3 -d' '`
+ case "$ccversion" in
+ 1.2.[0-6]*)
+ hdf5_mpi_special_collective_io_works='no'
+ ;;
+ 1.0.2)
+ # mpich2 is recycling the version number, some report
+ # 1.0.2, some report blank.
+ hdf5_mpi_special_collective_io_works='no'
+ ;;
+ "")
+ # got blank ccversion. Assume it is bad a mpich2.
+ hdf5_mpi_special_collective_io_works='no'
+ ;;
+ *)
+ # assume okay
+ ;;
+ esac
+ fi
+fi
+
+