[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:
This commit is contained in:
MuQun Yang 2006-03-09 09:54:35 -05:00
parent 0f0a5eb918
commit 5f0decf371

View File

@ -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