<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: [mpich-discuss] How does the fortran binding work?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008> Windows does this differently (profiling library
is btw fort binding lib and mpich2 lib --- the profiling lib should have been
before fort binding lib and mpich2 lib) and it is the source of the bug
(not able to profile fortran programs).</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008> I have a way to get profiling work for fortran
programs (Sort of a hack -- not too bad though). Let me think more on whether
there is an elegant (possibly difficult:) ) soln.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=165564016-31072008>Jayesh</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Rajeev
Thakur<BR><B>Sent:</B> Wednesday, July 30, 2008 1:18 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> RE: [mpich-discuss] How does the
fortran binding work?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=020471618-30072008><FONT face=Arial
color=#0000ff size=2>At least on the Unix side, from what I can tell, Fortran
MPI calls C MPI, and Fortran PMPI calls C PMPI.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=020471618-30072008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=020471618-30072008><FONT face=Arial
color=#0000ff size=2>Rajeev</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-mpich-discuss@mcs.anl.gov
[mailto:owner-mpich-discuss@mcs.anl.gov] <B>On Behalf Of </B>Jayesh
Krishna<BR><B>Sent:</B> Wednesday, July 30, 2008 1:12 PM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> RE: [mpich-discuss] How does the
fortran binding work?<BR></FONT><BR></DIV>
<DIV></DIV><!-- 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></BLOCKQUOTE></BODY></HTML>