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.

Figure 219: Viewing Across<br />

Threads<br />

Displaying a Variable in all Processes or Threads<br />

Displaying a Variable in all Processes<br />

or Threads<br />

When you’re debugging a parallel program that is running many instances<br />

of the same executable, you usually need to view or update the value of a<br />

variable in all of the processes or threads at once.<br />

Before displaying a variable’s value in all threads or processes, you must<br />

display an instance of the variable in a Variable Window. After <strong>TotalView</strong> displays<br />

this window, use one of the following commands:<br />

� View > Show Across > Process, displays the value of the variable in all<br />

processes.<br />

� View > Show Across > Thread, displays the value of a variable in all<br />

threads within a single process.<br />

� View > Show Across > None, returns the window to what it was before<br />

you used other Show Across commands.<br />

You cannot simultaneously Show Across processes and threads in the same Variable<br />

Window.<br />

After using one of these commands, the Variable Window switches to an<br />

array-like display of information, and displays the value of the variable in<br />

each process or thread. Figure 219 shows a simple, scalar variable in each<br />

of the processes in an OpenMP program.<br />

When looking for a matching stack frame, <strong>TotalView</strong> matches frames starting<br />

from the top frame, and considers calls from different memory or stack<br />

locations to be different calls. For example, the following definition of<br />

<strong>TotalView</strong> <strong>Users</strong> <strong>Guide</strong>: version 8.7 345

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

Saved successfully!

Ooh no, something went wrong!