From 5f0decf37128dfd7390196ab38cf922e33221279 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Thu, 9 Mar 2006 09:54:35 -0500 Subject: [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: --- config/mpich | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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 + + -- cgit v0.12