MPI Forum Meetings logo

MPI Forum: mpi3-fortran Mailing List Archives

all MPI Forum: mpi3-fortran mailing list

Subject: Re: [MPI3 Fortran] What if Fortran is the primary interface?
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2008-03-17 18:18:40


On Mar 17, 2008, at 6:05 PM, Aleksandar Donev wrote:

> In C, would you make the C Interface:
>
> void MPI_Send(..., struct MPI_Comm comm,...)

This.

> or do you want
>
> void MPI_Send(..., struct MPI_Comm *comm,...)

Not this.

In C, the type of MPI_Comm is not defined. For example, Open MPI and
HP MPI use pointers (natively), but Intel MPI, MPICH, and others use
int's.

> Either one of these could be translated into an *equivalent* Fortran
> interface, where by equivalence I mean full binary compatibility.

Yes, the ABI problem really stems from the C interface. :-\

-- 
Jeff Squyres
Cisco Systems