LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-04-07 05:28:06


On Wed, 7 Apr 2004, ST Wong wrote:

> I see. I built the LAM library with default options, i.e. without "-q
> extname". In fact, the program I tested with comes from a software
> package. In the this package, all MPI calls are terminated with "_".

A few more comments in addition to what Neil said:

1. LAM handles building of the fortran symbols correctly without any
additional help. So a call to an MPI function from fortran should look
something like:

       call MPI_INIT(ierr)

There should not be any need to append "_", specify extra case, etc.
Indeed, as Neil mentioned, you could use any of the following and it
should work fine:

       call mpi_init(ierr)
       call MPI_Init(ierr)
       call MpI_iNIt(ierr)
       ...and so on...

2. Your program that adds "_" to all MPI symbols is not correct; MPI
specifies that you should only the MPI name is necessary in fortran
programs (e.g., "MPI_INIT"), not any other case/underscore conversions.
If you you remove all trailing "_"'s from the MPI function names in your
program, it should work with every MPI that has fortran bindings
installed.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/