As an alternative to the method described in “Debugging an Application”, it is also possible to "attach" an instance of TotalView to an application which is already running.
1.Compile a
$ mpirun
3.Start TotalView: $ totalview
4.Select Unattached in the TotalView Root Window to display a list of running processes.
5.The TotalView Process Window appears, displaying information on the srun process. Select Attached in the TotalView Root Window.
6.
Make sure your job has completed before exiting TotalView. This may require that you wait a few seconds from the time your job has completed until srun has completely exited.
If you exit TotalView before your job is completed, use the squeue command to ensure that your job is not still on the system.
$ squeue
If it is still there, use the following command to remove all of your jobs:$ scancel
To cancel individual jobs, see the scancel manpage for information about selective job cancellation.
6.2 Debugging Parallel Applications | 67 |