Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.5rc5 has been posted
From: Larry Baker (baker_at_[hidden])
Date: 2010-09-01 20:09:58


OpenMPI 1.4.x and 1.5x fail to link a program that calls Subroutine
MPI_SIZEOF using the PGI 10.3 compilers:

> $ cat junk.f90
> Use MPI
> Implicit None
> Integer var, size, err
> Call MPI_SIZEOF( var, size, err )
> Write (*,*) 'Size of Integer var is ', size, ' bytes.'
> Stop
> End
>
> $ /opt/pgi/linux86-64/current/openmpi/bin/mpif90 -o junk junk.f90
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof1dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof4dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof3dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof4dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof2dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof2dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof3dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof1dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof0dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/libmpi_f90.so: undefined
> reference to `mpi_sizeof0dch_'
> make: *** [junk] Error 2

This is because the specific procedures declared in ompi/mpi/f90/mpi-
f90-interfaces.h are not all implemented in ompi/mpi/f90/
mpi_sizeof.f90. It does not seem to matter to gfortran, but PGI
Fortran 90 cares.

The root of the problem is the inconsistency between the methods used
to enumerate the specific procedures in ompi/mpi/f90/scripts/mpi-f90-
interfaces.h.sh (the declarations) and ompi/mpi/f90/scripts/
mpi_sizeof.f90.sh (the implementations). The Character and Logical
implementations are missing. mpi_sizeof.f90.sh generates lkinds
specific Logical procedure implementations. However, since lkinds is
not defined in ompi/mpi/f90/fortran_kinds.sh, there are none. Even if
lkinds were defined, mpi-f90-interfaces.h.sh declares a single
(nameless) kind of Logical procedure, while mpi_sizeof.f90.sh (would,
if there were any) decorates the name of each Logical procedure
implementation with the kind. And, mpi_sizeof.f90.sh completely
leaves out the Character procedure implementations.

I will work out a fix for this in the next few days, unless the author
wants to. Is that okay?

Larry Baker
US Geological Survey
650-329-5608
baker_at_[hidden]

On Aug 17, 2010, at 2:18 PM, Jeff Squyres wrote:

> We still have one known possible regression:
>
> https://svn.open-mpi.org/trac/ompi/ticket/2530
>
> But we posted rc5 anyway (there's a bunch of stuff that has been
> pending for a while that is now in). Please test!
>
> http://www.open-mpi.org/software/ompi/v1.5/
>
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel