Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-10-10 05:32:30


Joachim Worringen wrote:

> Wrong - i.e., the value of MPI_COMM_WORLD is not defined in Fortran,
> either. This won't work if one MPI implementation sets
> MPI_COMM_WORLD to 35 and another expects 626.
>
> Of course, you are right for opaque datatypes like MPI_Group, but this
> is not sufficient for an ABI.

If only the 'named constants' are a problem: It's very easy to create a
few functions (like 'int mpi_comm_world()') that will return the correct
value for a given implementation.

Any other alternative (cfr. MorphMPI that was discussed some months ago)
is much more complicated and finally I'm not convinced it provides any
added value in respect to the solution mentioned above.

(I've never used the fortran interface of MPI BTW, always the C
interface. But I was wondering why we do not have the same problem with
our calls to BLAS: well for BLAS we always call the fortran interface
from C and C++)

toon