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.

Setting Up and Starting the <strong>TotalView</strong> Server<br />

Because <strong>TotalView</strong> can automatically launch tvdsvr, you usually do not need<br />

to do anything special for programs that launch remote processes. When<br />

using <strong>TotalView</strong>, it doesn’t matter whether a process is local or remote.<br />

Some parallel programs—MPI programs, for example—make use of a starter program<br />

such as poe or mpirun. This program creates all the parallel jobs on your nodes.<br />

<strong>TotalView</strong> lets you start these programs in two ways. One requires that the starter program<br />

be under <strong>TotalView</strong> control, and the other does not. In the first case, you will enter<br />

the name of the starter program on the command the line. In the other, you will enter<br />

program information into the File > New Program or Process > Startup Parameter<br />

dialog boxes. Programs started using these dialog boxes do not use the information you<br />

set for single-process and bulk server launching.<br />

In general, when you are debugging programs remotely, the architecture of<br />

the remote machine must be compatible with that of the machine upon<br />

which you are running <strong>TotalView</strong>. For example, you cannot perform remote<br />

debugging on a 64-bit Linux system if you launch <strong>TotalView</strong> from a 32-bit<br />

Linux system. In addition, the operating systems must also be compatible.<br />

However, <strong>TotalView</strong> supports several forms of heterogeneous debugging,<br />

where the operating system and/or architecture differ. For example, from a<br />

Linux x86-64 session you can debug remote processes on Linux Cell.<br />

This table shows the supported combinations:<br />

Host System Target System<br />

Linux x86-64 Linux x86<br />

Linux x86-64<br />

Linux Power 32<br />

Linux Power 64 / Cell<br />

SiCortex<br />

Cray XT<br />

Linux x86 Linux x86<br />

Linux Power 32<br />

Linux Power 64 / Cell<br />

Linux Power 64 Linux Power 32<br />

(including Linux Cell) Linux Power 64 / Cell<br />

Blue Gene<br />

SiCortex Linux x86-64 Linux MIPS 64<br />

You must install <strong>TotalView</strong> for each host and target platform combination<br />

being debugged.<br />

The path to <strong>TotalView</strong> must be identical on the local and all remote systems. If they are<br />

not, <strong>TotalView</strong> will not find the tvdsvr program.<br />

<strong>TotalView</strong> assumes that you will launch tvdsvr using rsh. If rsh is unavailable,<br />

you should set the TVDSVRLAUNCHCMD environment variable to the<br />

command that you use to remotely access the remote system. In most<br />

cases, this will be ssh.<br />

82 Chapter 5: Setting Up Remote Debugging Sessions

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

Saved successfully!

Ooh no, something went wrong!