forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
- From: "Anglade Pierre-Matthieu" <anglade@gmail.com>
- To: "Deyu Lu" <dylu@ucdavis.edu>, "Yann Pouillon" <pouillon@pcpm.ucl.ac.be>, forum@abinit.org
- Subject: Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf
- Date: Tue, 29 Aug 2006 14:41:20 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cSdj1ToZeQEbtmD65X49kj/a7pmTnSbteN84is5VLJoc4jOP9YhK/nekgBQxOQGpvCBlrxSew6aYTjS0BMJF2AK3bEp/aBPYpqagYU7/y1njuP4dUBJnwVsw+Ml+KpZ3AOr4HcsTIHe82SvQEc+Hzb/w+d5/N57SpK7f4bzVcYg=
Hi all,
Here is a list of workaround which may help compiling parallel abinit
on the AIX/power4+ platform.
I've worked with abinit 5.2.2
1) First to configure run the following command:"""
./configure --enable-fortran-wrapper FC=/usr/lpp/ppe.poe/bin/mpxlf90
CC=/usr/vac/bin/cc --with-mpi-prefix=/usr/lpp/ppe.poe --enable-mpi
--with-mpi-run=/usr/lpp/ppe.poe/bin/mpiexec
--with-mpi-fc=/usr/lpp/ppe.poe/bin/mpxlf90 TRUE_CPPFLAGS=" "
AR="/usr/bin/ar -X 32"
"""
Obviously you have to adapt for your own case. For instance on my test
machine the default for binaries is 32 bits while the configure want
to AR everything in 64. That's why I enforce the -X 32 option. The CC
compiler is also in a pretty unstandard path. Etc.
2) After that you are able to compile up to the libraries. Yet for
abinit there is still some problems. To solve them you must edit the
script "util/build/wrap-fc"
a) I have had to change the line 23 from """
CPPFLAGS="-P -std=c89 "
to
CPPFLAGS=" "
"""
It seems that the configure don't test those flags and they hapen to
be incompatible with the cpp living in "/usr/lib" (yes /usr/lib!).
b) Anyway, the wrapper/configure is also going to bother you with some
-D options. Althought those are preprocessor option it send them to
the compiler. For most compiler it is OK. Yet xlf have a presonnal
understanding of what -D means. In fact the equivalent of the
standard "-D" for XLF is "-WF," ...
The solution is to remove the passing of the -D arguments. Anyway they
are not needed anymore, are they ?
So edit again "util/build/wrap-fc"
and add the following lines after the line ~110:
echo "FCFLAGS ARE THE FOLLOWING"
echo "${FCFLAGS}"
REP1="-DHAVE_CONFIG_H"
REP2="-DMPI"
NEW1=" "
NEW2=" "
CPFCFLAGS=${FCFLAGS}
FCFLAGS=`echo ${CPFCFLAGS} | sed -e "s/${REP1}/${NEW1}/g" `
CPFCFLAGS=${FCFLAGS}
FCFLAGS=`echo ${CPFCFLAGS} | sed -e "s/${REP2}/${NEW2}/g" `
echo "NEW FCFLAGS ARE THE FOLLOWING"
echo "${FCFLAGS}"
This seems to be enough to compile abinit 5.2.2
regards
PMA
--
Pierre-Matthieu Anglade
- Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf, Anglade Pierre-Matthieu, 08/29/2006
- Re: [abinit-forum] Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf, Yann Pouillon, 08/30/2006
Archive powered by MHonArc 2.6.16.