Totalview® for HPC User Guide : PART IV Advanced Tools and Customization : Chapter 20 Setting Up MPI Debugging Sessions : Sun MPI Applications : Attaching to a Sun MPI Job
Attaching to a Sun MPI Job
To attach to an already running mprun job:
1. Find the host name and process identifier (PID) of the mprun job by typing mpps -b. For more information, see the mpps(1M) manual page.
The following is sample output from this command:
JOBNAME MPRUN_PID MPRUN_HOST
cre.99 12345 hpc-u2-9
cre.100 12601 hpc-u2-8
2. After selecting File > Attach to a Running Program, type mprun in the File Name field and type the PID in the Process ID field.
CLI: dattach mprun mprun-pid
For example:
     dattach mprun 12601
3. If TotalView is running on a different node than the mprun job, select the host or add a new host in the Host field.
CLI: dattach -r host-name mprun mprun-pid