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 PVM (Parallel Virtual Machine) and DPVM Applications<br />

Setting Up ORNL PVM Debugging<br />

To enable PVM, create a symbolic link from the PVM bin directory (which is<br />

usually $HOME/pvm3/bin/$PVM_ARCH/tvdsvr) to the <strong>TotalView</strong> Server<br />

(tvdsvr). With this link in place, <strong>TotalView</strong> invokes pvm_spawn() to spawn<br />

the tvdsvr tasks.<br />

For example, if tvdsvr is installed in the /opt/totalview/bin directory, enter<br />

the following command:<br />

ln -s /opt/totalview/bin/tvdsvr \<br />

$HOME/pvm3/bin/$PVM_ARCH/tvdsvr<br />

If the symbolic link doesn’t exist, <strong>TotalView</strong> can’t spawn tvdsvr. If <strong>TotalView</strong><br />

can’t spawn tvdsvr, it displays the following error:<br />

Error spawning <strong>TotalView</strong> Debugger Server: No such file<br />

Starting an ORNL PVM Session<br />

Start the ORNL PVM daemon process before you start <strong>TotalView</strong>. See the<br />

ORNL PVM documentation for information about the PVM daemon process<br />

and console program. The procedure for starting an ORNL PVM application<br />

is as follows:<br />

1 Use the pvm command to start a PVM console session—this command<br />

starts the PVM daemon.<br />

If PVM isn’t running when you start <strong>TotalView</strong> (with PVM support enabled),<br />

<strong>TotalView</strong> exits with the following message:<br />

Fatal error: Error enrolling as PVM task:<br />

pvm error<br />

2 If your application uses groups, start the pvmgs process before starting<br />

<strong>TotalView</strong>.<br />

PVM groups are unrelated to <strong>TotalView</strong> process groups. For information<br />

about <strong>TotalView</strong> process groups, see “Examining Groups” on page 235.<br />

3 You can use the –pvm command-line option to the totalview command.<br />

As an alternative, you can set the TV::pvm variable in a startup file.<br />

The command-line options override the CLI variable. For more information,<br />

see “<strong>TotalView</strong> Command Syntax” in the <strong>TotalView</strong> Reference <strong>Guide</strong>.<br />

4 Set the <strong>TotalView</strong> directory search path to include the PVM directories.<br />

This directory list must include those needed to find both executable and<br />

source files. The directories you use can vary, but should always contain<br />

the current directory and your home directory.<br />

You can set the directory search path using either the EXECUTABLE_PATH<br />

variable or the File > Search Path command. See “Setting Search Paths” on<br />

page 71 for more information.<br />

For example, to debug the PVM examples, you can place the following<br />

directories in your search path:<br />

.<br />

$HOME<br />

$PVM_ROOT/xep<br />

$PVM_ROOT/xep/$PVM_ARCH<br />

$PVM_ROOT/src<br />

152 Chapter 7: Setting Up Parallel Debugging Sessions

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

Saved successfully!

Ooh no, something went wrong!