[mpich-commits] r10662 - mpich2/trunk
gropp at mcs.anl.gov
gropp at mcs.anl.gov
Fri Nov 23 19:33:52 CST 2012
Author: gropp
Date: 2012-11-23 19:33:52 -0600 (Fri, 23 Nov 2012)
New Revision: 10662
Modified:
mpich2/trunk/configure.ac
Log:
Correctly compute MPI_STATUS_SIZE by using the size of a Fortran INTEGER
Modified: mpich2/trunk/configure.ac
===================================================================
--- mpich2/trunk/configure.ac 2012-11-23 20:38:05 UTC (rev 10661)
+++ mpich2/trunk/configure.ac 2012-11-24 01:33:52 UTC (rev 10662)
@@ -5606,7 +5606,10 @@
# compute from the C sizeof
# FIXME shouldn't these calculations be based on the size of a Fortran
# 'INTEGER' rather than a C 'int'?
- AS_VAR_ARITH([MPI_STATUS_SIZE],[$SIZEOF_MPI_STATUS / $ac_cv_sizeof_int])
+ if test -z "$pac_cv_f77_sizeof_integer" ; then
+ AC_MSG_ERROR([Sizeof Fortran INTEGER (MPI_Fint) is not available])
+ fi
+ AS_VAR_ARITH([MPI_STATUS_SIZE],[$SIZEOF_MPI_STATUS / $pac_cv_f77_sizeof_integer])
if test "$MPI_STATUS_SIZE" = "0" ; then
AC_MSG_ERROR([Could not compute the size of MPI_Status])
fi
More information about the commits
mailing list