QSW RMS Applications
NOTE: In many cases, you can bypass the procedure described in this section. For more information, see
Debugging MPI Programs.
Starting TotalView on an RMS Job
To start a parallel job under TotalView control, use TotalView as if you were debugging prun:
{ totalview | totalviewcli } prun -a prun-command-line
TotalView starts and shows you the machine code for RMS
prun. Since you’re not usually interested in debugging this code, use the
Process > Go command to let the program run.
The RMS prun command executes and starts all MPI processes. After TotalView acquires them, it asks if you want to stop them at startup. If you answer yes, TotalView halts them before they enter the main program. You can then create breakpoints.
Attaching to an RMS Job
To attach to a running RMS job, attach to the RMS prun process that started the job.
You attach to the prun process the same way you attach to other processes.
After you attach to the RMS prun process, you have the option to attach to slave MPICH processes. If you do, press Return or choose Yes. If you do not, choose No.
If you choose Yes, TotalView starts the server processes and acquires all MPI processes.
As an alternative, you can use the
Group > Attach Subset command to predefine what TotalView should do.