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 Global Arrays Applications<br />

Figure 104: Question Window<br />

for Global Arrays<br />

Program<br />

Figure 105: Tools > Global<br />

Arrays Window<br />

After your program hits a breakpoint, use the Tools > Global Arrays command<br />

to begin inspecting your program’s global arrays.<strong>TotalView</strong> displays<br />

the following window.<br />

CLI: dga<br />

The arrays named in this window are displayed using their C and Fortran<br />

type names. Diving on the line that contains the type definition tells<br />

<strong>TotalView</strong> to display Variable Windows that contains information about that<br />

array.<br />

After <strong>TotalView</strong> displays this information, you can use other standard commands<br />

and operations on the array. For example, you can use the slice and<br />

filter operations and the commands that visualize, obtain statistics, and<br />

show the nodes from which the data was obtained.<br />

If you inadvertently dive on a global array variable from the Process Window,<br />

<strong>TotalView</strong> does not know that it is a component of a global array. If, however,<br />

you do dive on the variable, you can cast the variable into a global array<br />

using either $ga for a C Language cast or $GA for a Fortran cast.<br />

150 Chapter 7: Setting Up Parallel Debugging Sessions

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

Saved successfully!

Ooh no, something went wrong!