Re: OpenMPI Fortran: 'Error reading module mpi' and unexpected but silent termination



In article <x1NVi.182146$eZ1.8950807@xxxxxxxxxxxxxxxxxxxxx>,
Bart Vandewoestyne <MyFirstName.MyLastName@xxxxxxxxxx> writes:
On 2007-10-30, Steven G. Kargl <kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Did you compile 0pen MPI with gcc and gfortran 4.1.2 as bundled
with Ubuntu, and now you're trying to use gfortran 4.3.0?

We did not compile OpenMPI ourselves. We are using the Kubuntu
package:

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

According to http://www.open-mpi.org/software/ompi/v1.2/,
there isn't a 1.1-2.3 version of Open MPI. This must
be some hacked up version.

This suggests that you may be using a module compiled with
gfortran 4.1.2 with gfortran 4.3.0 (or vice-versa). What does

mpif90 --version show?

bartv@kortrijk:~$ mpif90 --version
GNU Fortran (GCC) 4.3.0 20071002 (experimental) [trunk revision 128946]
Copyright (C) 2007 Free Software Foundation, Inc.

what are the top 2 lines of /usr/lib/mpi.mod?

bartv@kortrijk:~$ head -2 /usr/lib/mpi.mod
GFORTRAN module created from mpi.f90 on Fri Jan 26 16:06:27 2007
If you edit this, you'll get what you deserve.

Could it be that this is causing our troubles?

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.

Probably it would be better to use the (older) gfortran version from
the Kubuntu package in our distribution, right?

No. I'd install a newer version of Open MPI from source. See
the above URL.

If that is the probable solution, I'll ask our sysadmins to downgrade
our gfortran to the version in the Kubuntu package and remove our manually
installed version.

Note, you can install Open MPI is your home directory for testing
purposes.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: Getting g95 to work
    ... Just tried gfortran. ... Unzipped it, set my paths, and tried it on several files that compile ... Alex Gibson wrote: ... > gfotran was easy to install ...
    (comp.lang.fortran)
  • rsruby gem
    ... Does anybody have rsruby gem running on snow leopard? ... To do so, I tried installing gfortran. ... but R still cannot compile its fortran files via ... So has anyone figure out how to do the install of R on SL and then ...
    (comp.lang.ruby)
  • Re: GNU Fortran 95: Opinions?
    ... > knowing what Fortraners want from gfortran. ... MPI is reallly not related to Fortran. ... I haven't built any codes with gfortran yet, ... why are you waiting for OpenMPI? ...
    (comp.lang.fortran)
  • Re: rsruby gem
    ... To do so, I tried installing gfortran. ... but R still cannot compile its fortran files via ... So has anyone figure out how to do the install of R on SL and then ...
    (comp.lang.ruby)
  • Re: OpenMPI Fortran: Error reading module mpi and unexpected but silent termination
    ... with the following compilers: ... Did you compile 0pen MPI with gcc and gfortran 4.1.2 as bundled ... It's not easy to understand the "*.o" file format for me. ...
    (comp.lang.fortran)