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 QSW RMS Applications<br />

the MPI-1 Standard and much of the MPI-2 standard. More information<br />

about LAM/MPI, including all the source code and documentation, is<br />

available from the main LAM/MPI web site.<br />

“LAM/MPI is not only a library that implements the mandated MPI API, but<br />

also the LAM run-time environment: a user-level, daemon-based run-time<br />

environment that provides many of the services required by MPI programs.<br />

Both major components of the LAM/MPI package are designed as<br />

component frameworks—extensible with small modules that are selectable<br />

(and configurable) at run-time. ...<br />

You debug a LAM/MPI program in a similar way to how you debug most MPI<br />

programs. Use the following syntax if <strong>TotalView</strong> is in your path:<br />

mpirun –tv args prog prog_args<br />

As an alternative, you can invoke <strong>TotalView</strong> on mpirun:<br />

totalview mpirun –a prog prog_args<br />

The LAM/MPI User’s <strong>Guide</strong> discusses how to use <strong>TotalView</strong> to debug LAM/<br />

MPI programs.<br />

Debugging QSW RMS Applications<br />

In many cases, you can bypass the procedure described in this section. For more information,<br />

see “Debugging MPI Programs” on page 98.<br />

<strong>TotalView</strong> supports automatic process acquisition on AlphaServer SC systems<br />

and 32-bit Red Hat Linux systems that use Quadrics RMS resource<br />

management system with the QSW switch technology.<br />

Message queue display is only supported if you are running version 1, patch 2 or later,<br />

of AlphaServer SC.<br />

Starting <strong>TotalView</strong> on an RMS Job<br />

To start a parallel job under <strong>TotalView</strong> control, use <strong>TotalView</strong> as if you were<br />

debugging prun:<br />

{ totalview | totalviewcli } prun –a prun-command-line<br />

<strong>TotalView</strong> starts and shows you the machine code for RMS prun. Since<br />

you’re not usually interested in debugging this code, use the Process > Go<br />

command to let the program run.<br />

CLI: dfocus p dgo<br />

120 Chapter 6: Setting Up MPI Debugging Sessions

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

Saved successfully!

Ooh no, something went wrong!