Abinit 6.0.2 with OpenMPI 1.4.1

External optional components of Abinit (BigDFT, Wannier90...) and codes using/providing data from/to Abinit (AtomPAW, ONCVPSP, EXC, DP, Yambo...)

Moderators: ebousquet, bxu

Locked
Keitel
Posts: 6
Joined: Sun Feb 21, 2010 7:01 pm

Abinit 6.0.2 with OpenMPI 1.4.1

Post by Keitel » Wed Mar 24, 2010 8:46 pm

Dear Abinitiers,

I used to run Abinit 5.8.4 with OpenMPI 1.4.1 in a Fedora 12 - 32 bits machine.
I have moved to the Abinit 6.0.2 version but now in a Fedora 12 -64 bits machine
Without openMPI there is no problem (serial version),
but i can not link to the openMPI code.
I got the following error after I type in the command line: sudo make multi multi_nprocs=2

base.f90:26: Error: Can't open included file 'mpif.h'
base.f90:27.53:

integer, parameter :: mpidtypw=MPI_DOUBLE_PRECISION,mpidtypd=MPI_DOUBLE_PRECI
1
Error: El símbolo 'mpi_double_precision' en (1) no tiene tipo IMPLICIT
base.f90:28.53:

integer, parameter :: mpidtypg=MPI_DOUBLE_PRECISION
1
Error: El símbolo 'mpi_double_precision' en (1) no tiene tipo IMPLICIT
make[7]: *** [base.o] Error 1
make[7]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft/bigdft-1.2.0.2/src/modules'
make[6]: *** [all-recursive] Error 1
make[6]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft/bigdft-1.2.0.2/src'
make[5]: *** [all-recursive] Error 1
make[5]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft/bigdft-1.2.0.2'
make[4]: *** [all] Error 2
make[4]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft/bigdft-1.2.0.2'
make[3]: *** [build-stamp] Error 2
make[3]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft'
make[2]: *** [package-ready] Error 2
make[2]: se sale del directorio `/opt/abinit-6.0.2/plugins/bigdft'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/opt/abinit-6.0.2/plugins'
make: *** [multi] Error 2

I supossed that the mpif.h is not found or have other name in the code or ...??
But before I made a possible mistake changing the code, I ask you for help.
Any suggestion?

Thanks in advanced

Keitel

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Abinit 6.0.2 with OpenMPI 1.4.1

Post by mverstra » Fri Mar 26, 2010 6:19 pm

You need to install openmpi yourself in some cases: the default rpm will not contain fortran support (mpif.h, the module files, and a functional mpif90 compiler). Do check the installed files in your case though: if they are present you simply need to tell abinit where they are using --with-mpi-prefix



Matthieu
Matthieu Verstraete
University of Liege, Belgium

Keitel
Posts: 6
Joined: Sun Feb 21, 2010 7:01 pm

Re: Abinit 6.0.2 with OpenMPI 1.4.1

Post by Keitel » Sat Mar 27, 2010 12:36 am

Dear Matthieu,

I have the following compilers from openmpi 1.4.1 in the /usr/local/bin dir
mpic++ mpiCC mpiCC-vt mpicxx mpiexec mpif77-vt mpif90-vt
mpicc mpicc-vt mpic++-vt mpicxx-vt mpif77 mpif90 mpirun

Also I have run a hello world example from:
http://www.open-mpi.org/papers/workshop ... isites.php
and the installation seems to be OK.

In my previous post I have used:
sudo ./configure --enable-libxc="yes" --enable-mpi="yes" --with-mpi-includes="-I/usr/local/include" --with-mpi-runner="/usr/local/bin/mpiexec"
make multi multi_nprocs=2

And today, with your advice, I have run the following commands:

./configure --enable-libxc="yes" --enable-mpi="yes" --with-mpi-prefix="/usr/local/bin"
Is that correct?

Because abinit does not found the mpi binaries.
In the .log, it says something that mpi was not found in "/usr/local/bin"
and it asks me to check. Then the program configures abinit without openmpi.
Sorry, I do not have the .log output.
There is an electricity problem in my lab and I won't be there until Monday.

I am inclined to believed that this is something with the flags for 64 bits.

Best Regards

Keitel


Note:
I could say that the configure script allowed me to use or
--with-mpi-includes="-I/usr/local/include" --with-mpi-runner="/usr/local/bin/mpiexec"
or
--with-mpi-prefix="/usr/local/bin"
Only one, because one involved the other.

mverstra
Posts: 655
Joined: Wed Aug 19, 2009 12:01 pm

Re: Abinit 6.0.2 with OpenMPI 1.4.1

Post by mverstra » Sat Mar 27, 2010 11:13 am

prefix should point to the /usr/local directory. Inside there abinit looks for bin/ include/ etc...

Matthieu
Matthieu Verstraete
University of Liege, Belgium

Locked