Totalview® User Guide : PART IV Advanced Tools and Customization : Chapter 19 Setting Up MPI Debugging Sessions : MPICH2 Applications : Starting TotalView Debugging on an MPICH2 Hydra Job
Starting TotalView Debugging on an MPICH2 Hydra Job
As of MPICH2 1.4.1, the default job type for MPICH2 is Hydra. If you are instead using MPD, see "Starting TotalView Debugging on an MPICH2 MPD Job".
NOTE >> In many cases, you can bypass the procedure described in this section. For more information, see "Debugging MPI Programs".
Start a Hydra job as follows:
totalview -args mpiexec mpiexec-args program program-args
You may not see sources to your program at first. If you do see the program, you can set breakpoints. In either case, press the Go button to start your process. TotalView displays a dialog box when your program goes parallel that allows you to stop execution. (This is the default behavior. You can change it using the options within File >Preferences >Parallel page.)