problems with mpi1 and mpi2 distinction
Posted: Thu Mar 01, 2012 11:44 am
I found a weird problem with the way the configure script recognises the mpi1 and mpi2 versions of MPI installation. If I let the configure script decide by specifying "with_mpi_prefix" directory, it incorrectly sets MPI to MPI2 while in fact the installation is MPI1. As a result, the compilation crashes.
On the other hand, if I specify MPI installation in a step-wise fashion, via with_mpi_incs, with_mpi_level, with_mpi_libs, and MPI_RUNNER, the compilation crashes as well - albeit in a different place than in the previous case.
The situation can be fixed by running the configuration script relying in the "with_mpi_prefix" directory and afterwards setting manually MPI to MPI1 instead of MPI2 in the config.h file (produced by the configure script).
Then everything runs okay.
This happened with abinit versions 6.6.1 as well as 6.12.1 so it will be a more general issue. My system is openSUSE 10.3 (X86-64), MPI installatioon is 64-bit OpenMPI version 1.4.1 (but simular problems were, e.g., with 1.3.1 as well). I did not have this issue on other systems (e.g., openSUSE 11.4 or SUSE Linux Enterprise Server 10).
A quick fix by setting MPI to MPI1 manually in the config.h file after configuring the installation via "with_mpi_prefix" works. However, it is a nuissance and it may be too cumbersome for some users.
My knowledge of neither abinit, MPI or configure script is good enough to do a better diagnostics.
I tried to attach a gzipped tarball with few relevant files (and a "readme.txt" description) but the system does not allow *.tgz or *.tar or *.gz attachments. Everything can thus be download it from here: http://www.fzu.cz/~sipr/issues-mpi.tgz
Ondrej
On the other hand, if I specify MPI installation in a step-wise fashion, via with_mpi_incs, with_mpi_level, with_mpi_libs, and MPI_RUNNER, the compilation crashes as well - albeit in a different place than in the previous case.
The situation can be fixed by running the configuration script relying in the "with_mpi_prefix" directory and afterwards setting manually MPI to MPI1 instead of MPI2 in the config.h file (produced by the configure script).
Then everything runs okay.
This happened with abinit versions 6.6.1 as well as 6.12.1 so it will be a more general issue. My system is openSUSE 10.3 (X86-64), MPI installatioon is 64-bit OpenMPI version 1.4.1 (but simular problems were, e.g., with 1.3.1 as well). I did not have this issue on other systems (e.g., openSUSE 11.4 or SUSE Linux Enterprise Server 10).
A quick fix by setting MPI to MPI1 manually in the config.h file after configuring the installation via "with_mpi_prefix" works. However, it is a nuissance and it may be too cumbersome for some users.
My knowledge of neither abinit, MPI or configure script is good enough to do a better diagnostics.
I tried to attach a gzipped tarball with few relevant files (and a "readme.txt" description) but the system does not allow *.tgz or *.tar or *.gz attachments. Everything can thus be download it from here: http://www.fzu.cz/~sipr/issues-mpi.tgz
Ondrej