<html><head>
<meta http-equiv="Content-Type" content="text/html; CHARSET=UTF-8">
<meta name="GENERATOR" content="GtkHTML/3.12.1">
</head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<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>