Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx>
- Date: Wed, 31 Oct 2007 11:49:57 GMT
On 2007-10-30, Steven G. Kargl <kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
[...]
Yes. This could be the problem. Gfortran 4.3.0 20071002 will
write an MD5 value for the module in the first two lines, and
your mpi.mod is missing the MD5 signature.
OK. We have downgraded our gfortran compiler. We are now using
the packages of our Kubuntu installation (7.10 - Gutsy Gibbon) for
both OpenMPI and gfortran:
bartv@kortrijk:~$ dpkg --list | grep openmpi
ii openmpi-bin 1.1-2.3 high performance message passing library
ii openmpi-common 1.1-2.3 high performance message passing library
ii openmpi-dev 1.1-2.3 high performance message passing library
ii openmpi-libs0 1.1-2.3 high performance message passing library
bartv@kortrijk:~$ dpkg --list | grep gfortran
ii gfortran 4.1.2-1ubuntu1 The GNU Fortran 95 compiler
ii gfortran-4.1 4.1.2-0ubuntu4 The GNU Fortran 95 compiler
ii libgfortran1 4.1.2-0ubuntu4 Runtime library for GNU Fortran applications
ii libgfortran1-dev 4.1.2-0ubuntu4 GNU Fortran library development
The testprogram I'm using is the following:
program test_mpi
use mpi
implicit none
integer :: rank, nb, ierr
print *,"right before mpi_init"
call mpi_init( ierr )
print *, "right before mpi_comm_rank"
call mpi_comm_rank(MPI_COMM_WORLD, rank, ierr)
print *,"Hello, I'm processor ", rank
print *,"right before mpi_finalize"
call mpi_finalize(ierr)
end program test_mpi
I get undefined reference errors when I simply compile with mpif90 without
any additional flags:
bartv@kortrijk:~/mpi_test$ mpif90 test_mpi.f90
/tmp/ccNMqzGg.o: In function `MAIN__':
test_mpi.f90:(.text+0x9c): undefined reference to `mpi_init_'
test_mpi.f90:(.text+0x11e): undefined reference to `mpi_comm_rank_'
test_mpi.f90:(.text+0x210): undefined reference to `mpi_finalize_'
collect2: ld returned 1 exit status
So I therefore add the -fsecond-underscore flag and things seem to compile
fine:
bartv@kortrijk:~/mpi_test$ mpif90 test_mpi.f90 -fsecond-underscore
bartv@kortrijk:~/mpi_test$
Now, as I try to run this, the program silently exits somewhere in the
mpi_init subroutine and it doesn't seem to proceed beyond that routine:
bartv@kortrijk:~/mpi_test$ mpirun -np 4 a.out
right before mpi_init
right before mpi_init
right before mpi_init
right before mpi_init
bartv@kortrijk:~/mpi_test$
And this is where we are stuck :-(
Any help appreciated...
Regards,
Bart
--
"Share what you know. Learn what you don't."
.
- Follow-Ups:
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Steven G. Kargl
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- References:
- OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Koen Poppe
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Steven G. Kargl
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Bart Vandewoestyne
- Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- From: Steven G. Kargl
- OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Prev by Date: Adding a column to an existing output file
- Next by Date: Re: Adding a column to an existing output file
- Previous by thread: Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Next by thread: Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination
- Index(es):
Relevant Pages
|