Page 1 of 1

ibm sequential compilation

Posted: Sat Mar 19, 2011 6:37 pm
by mverstra
Hello,

ibm compiler triggers the following in config.h:

# The IBM Fortran compiler crashes if the mpi module is included
# more than once
if test "${abi_fc_vendor}" = "ibm"; then
{ $as_echo "$as_me:$LINENO: activating MPI workaround for the IBM Fortran compiler" >&5
$as_echo "$as_me: activating MPI workaround for the IBM Fortran compiler" >&6;}

cat >>confdefs.h <<\_ACEOF
#define HAVE_MPI_INCLUDED_ONCE 1
_ACEOF

fi

but this makes the compilation fail later on for the sequential build, which checks that the correct cpp tricks have been used, and fails if HAVE_MPI is false and HAVE_MPI_INCLUDED_ONCE is true... The IBM patch above should be conditional to MPI being used at all, of course.

Matthieu

Re: ibm sequential compilation  [SOLVED]

Posted: Mon Mar 21, 2011 11:28 am
by pouillon
Fixed in pouillon/6.6.2-public/566.