Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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/ undefined
> reference to `mpi_sizeof1dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof4dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof3dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof4dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof2dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof2dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof3dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof1dch_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ undefined
> reference to `mpi_sizeof0dl_'
> /opt/pgi/linux86-64/10.3/openmpi/lib/ 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- (the declarations) and ompi/mpi/f90/scripts/ (the implementations). The Character and Logical
implementations are missing. generates lkinds
specific Logical procedure implementations. However, since lkinds is
not defined in ompi/mpi/f90/, there are none. Even if
lkinds were defined, declares a single
(nameless) kind of Logical procedure, while (would,
if there were any) decorates the name of each Logical procedure
implementation with the kind. And, 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

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

> We still have one known possible regression:
> But we posted rc5 anyway (there's a bunch of stuff that has been
> pending for a while that is now in). Please test!
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to:
> _______________________________________________
> devel mailing list
> devel_at_[hidden]