30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Debugging PVM (Parallel Virtual Machine) and DPVM Applications<br />

$PVM_ROOT/src/$PVM_ARCH<br />

$PVM_ROOT/bin/$PVM_ARCH<br />

$PVM_ROOT/examples<br />

$PVM_ROOT/examples/$PVM_ARCH<br />

$PVM_ROOT/gexamples<br />

$PVM_ROOT/gexamples/$PVM_ARCH<br />

5 Verify that the action taken by <strong>TotalView</strong> for the SIGTERM signal is appropriate.<br />

(You can examine the current action by using the Process Window<br />

File > Signals command. See “Handling Signals” on page 69 for more information.)<br />

PVM uses the SIGTERM signal to terminate processes. Because <strong>TotalView</strong><br />

stops a process when the process receives a SIGTERM, the process is not<br />

terminated. If you want the PVM process to terminate, set the action for<br />

the SIGTERM signal to Resend.<br />

<strong>TotalView</strong> will automatically acquire your application’s PVM processes. For<br />

more information, see “Automatically Acquiring PVM/DPVM Processes” on<br />

page 154.<br />

Starting a DPVM Session<br />

Starting a DPVM debugging session is similar to starting any other<br />

<strong>TotalView</strong> debugging session. The only additional requirement is that you<br />

must start the DPVM daemon before you start <strong>TotalView</strong>. See the DPVM<br />

documentation for information about the DPVM daemon and its console<br />

program. The procedure for starting an DPVM application is as follows<br />

1 Use the dpvm command to start a DPVM console session; starting the<br />

session also starts the DPVM daemon.<br />

If DPVM isn’t running when you start <strong>TotalView</strong> (with DPVM support<br />

enabled), <strong>TotalView</strong> displays the following error message before it exits:<br />

Fatal error: Error enrolling as DPVM task: dpvm error<br />

2 Enable DPVM support either by using the TV::dpvm CLI variable or by<br />

using the –dpvm command-line option to the totalview command.<br />

The command-line options override the TV:dpvm command variable. For<br />

more information on the totalview command, see “<strong>TotalView</strong> Command Syntax”<br />

in the <strong>TotalView</strong> Reference <strong>Guide</strong>.<br />

3 Verify that the default action taken by <strong>TotalView</strong> for the SIGTERM signal is<br />

appropriate. (You can examine the default actions with the Process<br />

Window File > Signals command in <strong>TotalView</strong>. See “Handling Signals” on<br />

page 69 for more information.)<br />

DPVM uses the SIGTERM signal to terminate processes. Because<br />

<strong>TotalView</strong> stops a process when the process receives a SIGTERM, the process<br />

is not terminated. If you want the DPVM process to terminate, set<br />

the action for the SIGTERM signal to Resend.<br />

If you enable PVM support using the TV::pvm variable and you need to use<br />

DPVM, you must use both –no_pvm and –dpvm command-line options<br />

when you start <strong>TotalView</strong>. Similarly, when enabling DPVM support us the<br />

TV::dpvm variable, you must use the –no_dpvm and –pvm command-line<br />

options.<br />

<strong>TotalView</strong> Reference <strong>Guide</strong>: version 8.7 153

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

Saved successfully!

Ooh no, something went wrong!