ibm sequential compilation  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

ibm sequential compilation

Post by mverstra » Sat Mar 19, 2011 6:37 pm

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
Matthieu Verstraete
University of Liege, Belgium

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: ibm sequential compilation  [SOLVED]

Post by pouillon » Mon Mar 21, 2011 11:28 am

Fixed in pouillon/6.6.2-public/566.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

Locked