[MPI3 Fortran] What if Fortran is the primary interface?

Jeff Squyres jsquyres at cisco.com
Mon Mar 17 17:18:40 CDT 2008


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




More information about the mpiwg-fortran mailing list