Starting an mpich program under TotalView control


Up: Debugging MPI programs with TotalView Next: Attaching to a running program Previous: Preparing mpich for TotalView debugging

To start a parallel program under TotalView control, simply add ` -dbg=totalview' to your mpirun arguments:

    mpirun -dbg=totalview -np 4 cpi 
TotalView will come up and you can start the program by typing ` G'. A window will come up asking whether you want to stop processes as they execute MPI_Init. You may find it more convenient to say ``no'' and instead to set your own breakpoint after MPI_Init (see Section Debugging with TotalView ). This way when the process stops it will be on a line in your program instead of somewhere inside MPI_Init.



Up: Debugging MPI programs with TotalView Next: Attaching to a running program Previous: Preparing mpich for TotalView debugging