Page 1 of 1

Configuring with MPI

Posted: Tue Jun 04, 2019 4:06 pm
by emily
When I configure and enable MPI, on version 8.10.2 it stops at this

==============================================================================
=== Multicore architecture support ===
==============================================================================

checking whether to enable OpenMP support... no
checking whether to build MPI code... yes
checking whether the C compiler supports MPI... no
checking whether the C++ compiler supports MPI... no
checking whether the Fortran Compiler supports MPI... no
checking whether MPI is usable... no
configure: error: MPI support is broken - please fix your config parameters and/or MPI installation

Can anyone help? I have attached the log file.

Re: Configuring with MPI

Posted: Tue Jun 04, 2019 4:21 pm
by ebousquet
Dear Emily,
Could you send your config file .ac you used or the list of options you've put to run the configure?
But it sounds like there is something wrong in the installation of MPI on your machine...
Thanks,
Eric

Re: Configuring with MPI

Posted: Tue Jun 04, 2019 4:24 pm
by gmatteo
The error message given in config.log

configure:23078: checking whether the Fortran Compiler supports MPI
configure:23332: gfortran -o conftest -g -ffree-line-length-none conftest.F90 -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lgfortran -lm -lquadmath >&5
conftest.F90:3: Error: Can't open included file 'mpif.h'
configure:23332: $? = 1


shows that you are trying to compile a parallel version with gfortran whereas one should use the mpif90 wrapper.

First of all, are you sure that mpif90 and the MPI library are installed on your machine?
What is the output of the linux command: which mpif90 ?

A user guide explaining how to configure and compile the parallel version on laptops and supercomputers is available at
https://wiki.abinit.org/lib/exe/fetch.p ... abinit.pdf

Re: Configuring with MPI  [SOLVED]

Posted: Wed Jun 05, 2019 3:48 pm
by emily
Hi,

Thanks for helping me. The first one was run using ./configure --enable-mpi

I also tried ./configure --enable-mpi FC=mpif90 and it returns this error

==============================================================================
=== Multicore architecture support ===
==============================================================================

checking whether to enable OpenMP support... no
checking whether to build MPI code... yes
checking whether the C compiler supports MPI... no
checking whether the C++ compiler supports MPI... no
checking whether the Fortran Compiler supports MPI... yes
checking whether MPI is usable... no
configure: error: MPI support is broken - please fix your config parameters and/or MPI installation

So now the Fortran Compiler supports MPI but MPI is still not usable? Does this mean there is something wrong with the MPI installation on the machine then?

Edit: I managed to get to configured with MPI.