[openfabrics-ewg] RE: Open-MPI issue on PPC64 platform
Jeff Squyres (jsquyres)
jsquyres at cisco.com
Sun May 21 10:43:54 PDT 2006
If you need additional flags to also be passed through the wrapper
compilers, you need to use the following flags to Open MPI's configure:
--with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc
--with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using
mpic++/mpiCC
--with-wrapper-fflags Extra flags to add to FFLAGS when using mpif77
--with-wrapper-fcflags Extra flags to add to FCFLAGS when using
mpif90
Specifically, Open MPI does not automatically pass all flags supplied by
CFLAGS, CXXFLAGS (etc.) specified by configure to the wrapper compiler
because there are many cases where you want Open MPI built with one set
of flags and your user app built with another (e.g., build an optimized
MPI but build your application with -g). So if you specify:
./configure --with-wrapper-cflags=-m64 --with-wrapper-cxxflags=-m64
...etc.
Then the wrapper flags will include -m64 and the user codes won't need
to include that on their compile/link command lines.
> -----Original Message-----
> From: Pavel Shamis (Pasha) [mailto:pasha at mellanox.co.il]
> Sent: Sunday, May 21, 2006 1:02 PM
> To: Jeff Squyres (jsquyres)
> Cc: openfabrics-ewg-bounces at openib.org; vlad at mellanox.co.il
> Subject: Open-MPI issue on PPC64 platform
>
> Hi Jeff,
> We figured out the following issue with Open-Mpi installation
> on Fedora
> Core 4 PPC64 platform:
> open-mpi passes the installation without problem and it
> builds 64bit mpi
> library. But if we try build some benchmarks (in our case mpitest
> package) the mpicc fails on linkage. On Fedora C4 PPC64 by
> default gcc
> use -m32 (!?) flag so in order to build 64bit binary you
> should add -m64
> flag and mpicc doesn't add it.
>
> Regards,
> Pasha
>
More information about the ewg
mailing list