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 SiCortex Applications<br />

Here is an example of how you would start a Cray XT CNL debugging session:<br />

totalview aprun -a -n4 a.out<br />

<strong>TotalView</strong> is not able to stop your program before it calls MPI_Init(). While<br />

this is typically at the beginning of main(), the actually location depends on<br />

how you’ve written the program. This means that if you set a breakpoint<br />

before the MPI_Init() call, <strong>TotalView</strong> ignores it because the statement upon<br />

which you set the breakpoint will have already executed.<br />

Debugging SiCortex Applications<br />

<strong>TotalView</strong> runs as a cross-debugger within the SiCortex-MIPS Linux environment,<br />

The SiCortex version of <strong>TotalView</strong> is a 64-bit application and must<br />

run on a x86-64 system running a 64-bit kernel. All debugging must use the<br />

remote features of <strong>TotalView</strong>.<br />

Features that are not implemented in this version are:<br />

� Memory debugging<br />

� OpenMP<br />

� SHMEM<br />

� PVM<br />

� Debugging 32-bit executables<br />

� Watchpoints<br />

� Compiled EVAL points<br />

Installation Notes<br />

The default location into which the <strong>TotalView</strong> installer places <strong>TotalView</strong><br />

binaries is<br />

/opt/toolworks. In addition, you must use this same path when you install it<br />

into the file system that will be mounted on the MIPS nodes.<br />

For more information on installing <strong>TotalView</strong>, consult the “<strong>TotalView</strong> Installation<br />

<strong>Guide</strong>,” which is located at http://www.totalviewtech.com/Documentation/.<br />

Using <strong>TotalView</strong> on SiCortex<br />

<strong>TotalView</strong> must be able to execute a command on the target system from<br />

the development host. By default, this version uses the ssh -x command.<br />

However, we suggest that set up ssh so that lets you execute commands<br />

without requiring a password.<br />

Your program’s executable file must be visible from both the development<br />

host and the target system. Do this by placing the executables in a directory<br />

that is visible on both machines through the same path. Having the<br />

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

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

Saved successfully!

Ooh no, something went wrong!