30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Debugging MPICH Applications<br />

Figure 84: File > New<br />

Program: Attach to<br />

an Existing Process<br />

If you’re using the GUI, <strong>TotalView</strong> updates the Root Window to show these<br />

newly acquired processes. For more information, see “Attaching to Processes”<br />

on page 124.<br />

Attaching to an MPICH Job<br />

<strong>TotalView</strong> lets you to attach to an MPICH application even if it was not<br />

started under <strong>TotalView</strong> control.<br />

To attach to an MPICH application:<br />

1 Start <strong>TotalView</strong>.<br />

Select Attach to an existing process from within the File > New Program<br />

dialog box. <strong>TotalView</strong> updates the dialog box so that it displays the processes<br />

that are not yet owned.<br />

2 Attach to the first MPICH process in your workstation cluster by diving<br />

into it.<br />

CLI: dattach executable pid<br />

3 On an IBM SP with the ch_mpi device, attach to the poe process that<br />

started your job. For details, see “Starting <strong>TotalView</strong> on a PE Program” on<br />

page 116. Figure 84 shows this information.<br />

Normally, the first MPICH process is the highest process with the correct<br />

program name in the process list. Other instances of the same executable<br />

can be:<br />

� The p4 listener processes if MPICH was configured with ch_p4.<br />

� Additional slave processes if MPICH was configured with ch_shmem or<br />

ch_lfshmem.<br />

� Additional slave processes if MPICH was configured with ch_p4 and has<br />

a file that places multiple processes on the same computer.<br />

102 Chapter 6: Setting Up MPI Debugging Sessions

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!