Quick article about debugging your parallel applications with Visual Studio
Open your project properties, and go to Configuration Properties->Debugging
All we have to do is to fill 3 textboxes:
- MPIRun Command is the path + filename of your mpirun applcation(usually mpiexec.exe or mpirun.exe), In my case it is "c:\Program Files\MPICH2\bin\mpiexec.exe" (do not forget the “”).
- MPIRun Arguments are the arguments we want to pass to the mPIRun command, at very least we have to tell mpi the number processes to spawn, so we use –n 2 for 2 processes (change 2 as you wish).
- MPIShim Loacation is the path + filename of your mpishim.exe file. Mpishim.exe is diffrent for every release of visual studio and platform you have. For example its location for Visual Studio 2005 for 32bit platforms should be “C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x86”
Add your comment below, or trackback from your own site.
Subscribe to these comments.
Be nice. Keep it clean. Stay on topic. No spam.
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>