Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Master / Slave with Fortran / C languages
From: David Zhang (solarbikedz_at_[hidden])
Date: 2010-06-11 11:08:56


I think if you're also using fortran compiler that support iso_c_binding (a
fortran 2003 standard) that may also help ensuring the data types are the
same. The latest gfortran supports this.

On Fri, Jun 11, 2010 at 5:22 AM, Giraudon Cyril <cyril.giraudon_at_[hidden]>wrote:

> Le 11/06/2010 13:12, Jeff Squyres a écrit :
> > On Jun 11, 2010, at 5:59 AM, Giraudon Cyril wrote:
> >
> >
> >> I'd like to know if it is possible to make communicate fortran and C
> >> programs with MPI-2/Open MPI using the master / slave mode ?
> >>
> >> The master is in Fortran
> >> The slave is in C
> >> The exchanged Data are real, integer and character scalars and arrays.
> >>
> > Yes, it should be no problem. It is easiest when the representations of
> the data by your two compilers are the same (e.g., REAL == float, INTEGER ==
> int). It may be easiest to use compilers from the same vendor / family for
> linkage purposes, but it probably isn't 100% necessary.
> >
> >
> Thanks a lot jeff.
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

-- 
David Zhang
University of California, San Diego