[Dune] a problem with mpi using with dune
Arya Fallahi
arya.fallahi at gmail.com
Mon Sep 17 10:08:20 CEST 2012
Hi Christian,
Thank you very much for your explanations. As always the dune team has been
very helpful and supportive for me. I changed the opt file and it worked.
Many thanks for the email,
Arya
On Sun, Sep 16, 2012 at 3:37 PM, Christian Engwer <
christian.engwer at uni-muenster.de> wrote:
> Hi,
>
> > checking for mpicc... mpicc
> > checking for MPI_Init... yes
> > checking for mpi.h... yes
> > configure: Trying to identify the version of MPI compiler mpicc
> > checking for lam... no
> > checking for mpich... no
> > checking for OpenMPI... no
> > checking for MVAPICH... no
> > checking for MVAPICH2... no
> > checking for mpich2... yes
> > checking whether compiling with MPICH2 works... yes
> > configure: WARNING: Disabled test whether running with MPICH2 works.
>
> obviously your default MPI is mpich2, so running with openmpi will not
> work straight away.
>
> > I tried to make dune to compile using the openmpi installation using the
> > opt-file flags, by writing the following:
> >
> > CONFIGURE_FLAGS=" CXX='/opt/openmpi-1.6.1/bin/mpicxx'
> > CC='/opt/openmpi-1.6.1/bin/mpicc'
> > LD='/opt/openmpi-1.6.1/bin/mpicxx'
> > LDFLAGS=' '
> > --enable-parallel
> > --prefix='/opt/cyrus'
> > --with-metis='/opt/metis-5.0.2'
> > --with-alugrid='/opt/ALUGrid-1.50'
> > --with-mpi='/opt/openmpi-1.6.1/' "
> >
> > However, it did not work and dune is compiling with the mpich2. The
> > question is now, how can I tell dune to install using the openmpi
> > installation on ubuntu??
>
> as 'configure --help' would have told you:
>
> Some influential environment variables:
> [...]
> MPICC MPI C compiler command
> [...]
> Use these variables to override the choices made by `configure' or to help
> it to find libraries and programs with nonstandard names/locations.
>
> You should set the environment variable MPICC to point to you favorite
> mpi c-compiler. On your system this means adding
> MPICC=/opt/openmpi-1.6.1/bin/mpicc
> to the configure flags in your opts file. For more details have a look
> at the build-system howto. It is not recommended to use mpi directly
> as your CXX or CC compiler.
>
> Christian
>
> --
> Prof. Dr. Christian Engwer
> Institut für Numerische und Angewandte Mathematik
> Fachbereich Mathematik und Informatik der Universität Münster
> Einsteinstrasse 62
> 48149 Münster
>
> E-Mail christian.engwer at uni-muenster.de
> Telefon +49 251 83-35067
> FAX +49 251 83-32729
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120917/8b60e00b/attachment.htm>
More information about the Dune
mailing list