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.

Figure 107: SHMEM<br />

Sample Session<br />

�<br />

�<br />

�<br />

�<br />

Debugging Shared Memory (SHMEM) Code<br />

3 Set at least one breakpoint after the call to the start_pes() SHMEM routine.<br />

(See Figure 107.)<br />

� SHMEM starter process<br />

� SHMEM worker processes<br />

� Select a worker process in the Root Window<br />

� Set a breakpoint after the call to start_pes()<br />

You cannot single-step over the call to start_pes(). Also, he call to start_pes() creates<br />

new worker processes that return from the start_pes() call and execute the remainder<br />

of your program. The original process never returns from start_pes(), but instead<br />

stays in that routine, waiting for the worker processes it created to terminate.<br />

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

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

Saved successfully!

Ooh no, something went wrong!