forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
Re: [abinit-forum] Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf
Chronological Thread
- From: Deyu Lu <dylu@ucdavis.edu>
- To: forum@abinit.org
- Subject: Re: [abinit-forum] Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf
- Date: Thu, 31 Aug 2006 18:09:06 -0700
Following Pierre-Matthieu's instruction, I compiled abinis and abinip
with 5.2.2 on a 64-bit machine using "mpxlf90_r -q64" to replace
mpxlf90. A tricky thing is that test jobs always crashes when it is
compiled with default optimizations flags giving a "segmentation fault"
error. I had to use -O0 as Pierre-Matthieu suggested. Now the code is
working.
Deyu Lu
On Tue, 2006-08-29 at 14:41 +0200, Anglade Pierre-Matthieu wrote:
> 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
>
>
>
>
- Re: [abinit-forum] Compilation of abinip 5.x on AIX/power4+ with ppe.poe device and xlf, Deyu Lu, 09/01/2006
Archive powered by MHonArc 2.6.16.