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 Sun MPI Applications<br />

mapped memory by default for the xpmem module if Replay is enabled.<br />

The environment variable, MPI_MEMMAP_OFF, is set to 1 in the <strong>TotalView</strong><br />

file parallel_support.tvd by adding the variable to the replay_env: specification<br />

as follows: replay_env: MPI_MEMMAP_OFF=1.<br />

If full memory mapping is required, you can set the startup environment<br />

variable in the Startup Parameters dialog window (in the Arguments tab).<br />

Add the following to the environment variables: MPI_MEMMAP_OFF=0.<br />

Be aware that the default mapped memory size may prove to be too large<br />

for ReplayEngine to deal with, and it could be quite slow. You can limit the<br />

size of the mapped heap area by using the MPI_MAPPED_HEAP_SIZE environment<br />

variable documented in the SGI documentation. After turning off<br />

MEMMAP_OFF as described above, you can set the size (in bytes) in the<br />

<strong>TotalView</strong> startup parameters.<br />

For example:<br />

MPI_MAPPED_HEAP_SIZE=1048576<br />

SGI has a patch for an MPT/XPMEM issue. Without this patch, XPMEM can crash<br />

the system if ReplayEngine is turned on. To get the XPMEM fix for the munmap problem,<br />

either upgrade to ProPack 6 SP 4 or install SGI patch 10570 on top of ProPack 6<br />

SP 3.<br />

Debugging Sun MPI 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> can debug a Sun MPI program and can display Sun MPI message<br />

queues. This section describes how to perform job startup and job attach operations.<br />

To start a Sun MPI application, use the following procedure.<br />

1 Type the following command:<br />

totalview mprun [ totalview_args ] –a [ mpi_args ]<br />

For example:<br />

totalview mprun –g blue –a –np 4 /usr/bin/mpi/conn.x<br />

CLI: totalviewcli mprun [ totalview_args ] –a [ mpi_args ]<br />

When the <strong>TotalView</strong> Process Window appears, select the Go button.<br />

CLI: dfocus p dgo<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.6 123

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

Saved successfully!

Ooh no, something went wrong!