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 Cray XT Applications<br />

The TV::server_launch_string variable is used for both Cray XT3 and Linux x86-64.<br />

This means that if you will also be using this <strong>TotalView</strong> installation on other linuxx86-64<br />

machines, you should not set the TV::server_launch_string variable in your<br />

global .tvdrc.<br />

Using <strong>TotalView</strong><br />

As part of launching an application on a compute node, <strong>TotalView</strong> will<br />

launch a server program on your login node using ssh. As with any ssh session,<br />

authentication is required. We recommend that you enable ssh without<br />

a pass phrase.<br />

<strong>TotalView</strong> is typically run interactively. If your site has not designated any<br />

compute nodes for interactive processing, use the PBS Pro qsub -I interactive<br />

mode. This mode is described in the Cray XT3 Programming Environment<br />

User’s <strong>Guide</strong>.<br />

If <strong>TotalView</strong> is installed on your system, use the following command to load<br />

it into your user environment:<br />

module load xt-totalview<br />

You can now use the following command to start the CLI:<br />

totalviewcli yod [-a argument_list] application_name<br />

Here’s the command that starts the GUI:<br />

totalviewcli yod [-a argument_list] application_name<br />

The following example shows how you can debug a program named a.out:<br />

% qsub -I -l size=4<br />

qsub: waiting for job 14448.nid00003 to start<br />

qsub: job 14448.nid00003 ready<br />

DISPLAY is user1:0.0<br />

Linux perch 2.4.21-0-sles9-ss-lustre #2 Fri Apr 29<br />

17:14:15 PDT 2005 x86_64 x86_64 x86_64 GNU/Linux<br />

/ufs/home/users/user1<br />

% module load xt-totalview<br />

% cd working_directory<br />

% totalview yod -a -sz 4 a.out<br />

Cray XT CNL<br />

Cray XT CNL applications are similar to those on Cray XT Catamount. The<br />

primary difference is that CNL applications are launched using aprun rather<br />

than yod.<br />

Most, perhaps all, programs are launched using a batch queueing system<br />

such as PBS, Moab, and so on. While this is independent from <strong>TotalView</strong>,<br />

you will need to do queue up for an interactive session. For example:<br />

qsub -I -sz=size<br />

146 Chapter 7: Setting Up Parallel Debugging Sessions

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

Saved successfully!

Ooh no, something went wrong!