<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783"></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=328000614-08072009><FONT color=#0000ff
size=2 face=Arial>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328000614-08072009><FONT color=#0000ff
size=2 face=Arial> You can use debugging level 0 when running smpd (smpd -d
0) in debug mode to avoid smpd dumping the messages to
stdout.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328000614-08072009><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=328000614-08072009><FONT color=#0000ff
size=2 face=Arial>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=328000614-08072009><FONT color=#0000ff
size=2 face=Arial>Jayesh</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of
</B>michael<BR><B>Sent:</B> Wednesday, July 08, 2009 8:38 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> [mpich-discuss] integrating mpich
into MS Visual Studio fordebugging FORTRAN<BR></FONT><BR></DIV>
<DIV></DIV><TT>
<DIV>With thanks to Jayesh, and tips I've garnered from elsewhere (and learning
by mistake!), I've pulled together a short example on using MS Visual Studio for
debugging MPI under MS Windows and would welcome any comments re mistakes or
omissions:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.rcs.manchester.ac.uk/community/MPI/VisualStudio_mpich2_howto">http://wiki.rcs.manchester.ac.uk/community/MPI/VisualStudio_mpich2_howto</A></DIV>
<DIV><BR></DIV>
<DIV>Many thanks, Michael, Research Computing Services, University of
Manchester, United Kingdom</DIV>
<DIV><BR></DIV> > Comment (by Jayesh
Krishna):</TT><BR><TT> ></TT><BR><TT> >
{{{</TT><BR><TT> ></TT><BR><TT> >
Hi,</TT><BR><TT> > Take a look at the section 9.8 in the window's
developer's guide</TT><BR><TT> ></TT><BR><TT> (<A
href="http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s">http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s</A></TT><BR><TT> >
=docs) on debugging MPI programs.</TT><BR><BR><TT> Had seen above but
didn't seem to meet the requirements of doing it</TT><BR><TT> within the
V.S. IDE...
however:</TT><BR><BR><TT> ></TT><BR><TT> ></TT><BR><TT> >
# You can also attach to MPI programs that are running using the
VS</TT><BR><TT> > debugger ("Attach to
process").</TT><BR><BR><TT> ah, didn't try the above... but
also:</TT><BR><BR><TT> ></TT><BR><TT> > # If all the MPI
processes are launched on the same machine/node</TT><BR><TT> > then
you</TT><BR><TT> > can start smpd in debug mode (smpd -stop; smpd -d;)
and use multiple</TT><BR><TT> > instances of VS to start your MPI
program (mpiexec -n 2 devenv.exe</TT><BR><TT> >
fpi.exe</TT><BR><TT> > ==> will start two VS windows and you can step
individually through</TT><BR><TT> > them).</TT><BR><BR><TT> yes!
this seems similar to what I was looking for (but prefer to
be</TT><BR><TT> able to kick off from the VS IDE
itself!)</TT><BR><BR><TT> ></TT><BR><TT> > (PS: The debug
versions of MPICH2 libraries, eg: fmpich2d.lib, is only</TT><BR><TT> >
required if you are debugging the MPICH2 library.)</TT><BR><BR><TT> good
point and many thanks for pointing that out
;)</TT><BR><BR><TT> M</TT><BR><BR><TT> ></TT><BR><TT> >
Regards,</TT><BR><TT> > Jayesh</TT> </BODY></HTML>