Shared Memory Code

TotalView supports the SGI IRIX logically shared, distributed memory access (SHMEM) library.

To debug a SHMEM program, follow these steps:

  1. Link it with the dbfork library. See Linking with the dbfork Library.
     
  2. Start TotalView on your program. See Setting Up a Debugging Session.
     
  3. 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

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0