Shared Memory Code
TotalView supports the SGI IRIX logically shared, distributed memory access (SHMEM) library.
To debug a SHMEM program, follow these steps:
- Link it with the dbfork library. See Linking with the dbfork Library.
- Start TotalView on your program. See Setting Up a Debugging Session.
- Set at least one breakpoint after the call to the start_pes() SHMEM routine.
SHMEM Sample Session
|
Note: You cannot single-step over the call to start_pes().
The call to start_pes() creates new worker processes that return from the start_pes() call and execute the remainder of your program. The original process never returns from start_pes(), but instead stays in that routine, waiting for the worker processes it created to terminate