Debugging Memory Problems with MemoryScape™ : Chapter 4 Creating Programs for Memory Debugging : Setting Up MPI Debugging Sessions : Debugging 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. Go to Attach to Running Program and look for the process.
3. If MemoryScape is running on a different node than the mprun job, enter the host name in the Remote Host field.
NOTE >> You must link the MemoryScape agent into your Sun MPI Parallel Environment program before running it. For details, see "Linking Your Application with the Agent".