Page 1 of 1

MPI_comm Error when Compilation Error 7.0.5

Posted: Thu Feb 07, 2013 7:09 am
by ljludwig
Dear ALL:

In order to compile 7.0.5, I use the following configure:

./configure CC=mpicc CXX=mpicxx FC=mpif90 --prefix=/home/ML/software/abinit-7.0.5 --enable-mpi=yes --enable-mpi-io=yes --with-mpi-prefix=/home/ML/software/mpich3 --with-fft-flavor="fftw3" --enable-gw-dpc --with-fft-incs="-I/home/ML/software/fftw/include" --with-fft-libs="-L/home/ML/software/fftw/lib -lfftw3"

Usually, it works pretty well, and at the step of configure, it does not contain any error.

However, when make mj4, there is a problem like this:

Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `accrho.o' failed
make[5]: *** [accrho.o] Error 1
make[5]: *** Waiting for unfinished jobs....
applypot.F90:78.57:

integer :: max1o,max2o,max3o,m1o,m2o,m3o,mpi_comm,nproc,iproc
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
applypot.F90:251.55:

MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit

applypot.F90:431.55:

MPI_double_precision,mpi_comm,ierr)
1
Error: Name 'mpi_comm' at (1) is an ambiguous reference to 'mpi_comm' from current program unit
Makefile:843: recipe for target `applypot.o' failed
make[5]: *** [applypot.o] Error 1
make[5]: Leaving directory `/home/ML/software/abinit-7.0.5/src/52_fft_mpi_noabirule'
Makefile:802: recipe for target `all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ML/software/abinit-7.0.5/src'
Makefile:1321: recipe for target `all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1243: recipe for target `all' failed
make[2]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1843: recipe for target `multi' failed
make[1]: *** [multi] Error 2
make[1]: Leaving directory `/home/ML/software/abinit-7.0.5'
Makefile:1840: recipe for target `mj4' failed
make: *** [mj4] Error 2



Any suggestion? The system is cygwin in win7 64bit.

Thank you very much for any kind of help and suggestions!!!

Re: MPI_comm Error when Compilation Error 7.0.5  [SOLVED]

Posted: Thu Feb 07, 2013 4:02 pm
by Alain_Jacques
Usually, it works pretty well
... I bet before you switched to mpich-3. I'm working on this issue.

As an interim solution, try to configure with

Code: Select all

--with-mpi-level=1


Kind regards,

Alain

Re: MPI_comm Error when Compilation Error 7.0.5

Posted: Thu Feb 07, 2013 8:09 pm
by ljludwig
Alain_Jacques wrote:
Usually, it works pretty well
... I bet before you switched to mpich-3. I'm working on this issue.

As an interim solution, try to configure with

Code: Select all

--with-mpi-level=1


Kind regards,

Alain



Hi, Alain:

Thank you so much!! This is exactly the problem coming from- previously I used mpich2.15, but turn to mpich3. I'll change the status to [solved].
Best regards,
Ludwig