<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>RE: [mpich-discuss] How does the fortran binding work?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>>> Looks like the Fortran interface does call the MPI version of the C function.<BR>
<BR>
Only if the call is from PMPI_* funcs. (If the MPI call is not from PMPI, MPI_* funcs get defined to PMPI_*)<BR>
<BR>
>> If the fortran binding calls PMPI version of C function...<BR>
<BR>
In windows this currently does not work (I guess, it is due to the different calling convention/name mangling by the mpe lib and the fortran lib in windows) :( Defenitely a TODO item :)<BR>
<BR>
Regards,<BR>
Jayesh<BR>
<BR>
-----Original Message-----<BR>
From: owner-mpich-discuss@mcs.anl.gov [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of Rajeev Thakur<BR>
Sent: Wednesday, July 30, 2008 12:42 PM<BR>
To: mpich-discuss@mcs.anl.gov<BR>
Subject: RE: [mpich-discuss] How does the fortran binding work?<BR>
<BR>
Looks like the Fortran interface does call the MPI version of the C function.<BR>
<BR>
<BR>
> -----Original Message-----<BR>
> From: owner-mpich-discuss@mcs.anl.gov<BR>
> [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of Anthony Chan<BR>
> Sent: Wednesday, July 30, 2008 12:01 PM<BR>
> To: mpich-discuss@mcs.anl.gov<BR>
> Subject: Re: [mpich-discuss] How does the fortran binding work?<BR>
><BR>
> If the fortran binding calls PMPI version of C function, can the<BR>
> fortran MPI program still be profiled ?<BR>
> <BR>
> ----- "Rajeev Thakur" <thakur@mcs.anl.gov> wrote:<BR>
><BR>
> > The Fortran binding calls the PMPI version of the C function.<BR>
> ><BR>
> > Rajeev<BR>
> ><BR>
> > > -----Original Message-----<BR>
> > > From: owner-mpich-discuss@mcs.anl.gov<BR>
> > > [<A HREF="mailto:owner-mpich-discuss@mcs.anl.gov">mailto:owner-mpich-discuss@mcs.anl.gov</A>] On Behalf Of Anthony Chan<BR>
> > > Sent: Wednesday, July 30, 2008 9:46 AM<BR>
> > > To: mpich-discuss@mcs.anl.gov<BR>
> > > Cc: mpich-discuss@mcs.anl.gov<BR>
> > > Subject: Re: [mpich-discuss] How does the fortran binding work?<BR>
> > ><BR>
> > ><BR>
> > > No. PMPI is the MPI profiling interface and is standardized by<BR>
> > > the MPI forum.<BR>
> > > Fortran/C++ MPI binding just calls the C MPI routine.<BR>
> > ><BR>
> > > A.Chan<BR>
> > ><BR>
> > > ----- "Ruini Xue" <xueruini@gmail.com> wrote:<BR>
> > ><BR>
> > > > On Wed, Jul 30, 2008 at 8:54 PM, Dave Goodell <<BR>
> > > goodell@mcs.anl.gov ><BR>
> > > > wrote:<BR>
> > > ><BR>
> > > ><BR>
> > > > Hi Andrew,<BR>
> > > ><BR>
> > > > Yes, the fortran and c++ bindings are just wrappers over the C<BR>
> > > > bindings. The C binding implements the functionality directly.<BR>
> > > ><BR>
> > > > Are they wrappers of MPI_XXX() or PMPI_XXX()?<BR>
> > > ><BR>
> > > > Best<BR>
> > > ><BR>
> > > > Andrew<BR>
> > > ><BR>
> > > ><BR>
> > > ><BR>
> > > ><BR>
> > > > -Dave<BR>
> > > ><BR>
> > > ><BR>
> > > ><BR>
> > > ><BR>
> > > > On Jul 30, 2008, at 6:11 AM, Ruini Xue wrote:<BR>
> > > ><BR>
> > > ><BR>
> > > ><BR>
> > > > Hello, everyone,<BR>
> > > ><BR>
> > > > I am working with MPICH2 on Windows platfrom. The fortran MIP<BR>
> > > > application is linked to fmpich.lib, and fmpich2.dll is<BR>
> loaded in<BR>
> > > > runtime, which in turn loads mipch2mpi.dll.<BR>
> > > > mpich2mpi.dll contains all MPI APIs which exported C<BR>
> > > interface. What I<BR>
> > > > want to know is: what is the 'underlying' relation between<BR>
> > > fmpich2.dll<BR>
> > > > and mpich2mip.dll? Do all<BR>
> > > > Fortran MPI calls are converted to c bindings in mpich2mpi.dll?<BR>
> > For<BR>
> > > > example, does MPI_BCAST() in fmich2.dll directly calls<BR>
> > > MPI_Bcast() in<BR>
> > > > mpich2mpi.dll? Is MPI_BCAST() just a stub while MPI_Bcast() do<BR>
> > the<BR>
> > > > real job?<BR>
> > > ><BR>
> > > > Thanks<BR>
> > > ><BR>
> > > > Andrew<BR>
> > ><BR>
> > ><BR>
><BR>
><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>