Debugging OpenMP Applications
TotalView supports many OpenMP compilers for the C, C++, and Fortran languages. Supported compilers and architectures are listed in the TotalView Platforms and Systems Requirements document.
The following are some features that TotalView supports:
*Source-level debugging of the original OpenMP code.
*The ability to plant breakpoints throughout the OpenMP code, including lines that are executed in parallel.
*Visibility of OpenMP worker threads.
*Access to SHARED and PRIVATE variables in OpenMP PARALLEL code.
*A stack-back link token in worker threads’ stacks so that you can find their master stack.
*Access to OMP THREADPRIVATE data in code compiled by supported compilers.
The code examples used in this section are included in the TotalView distribution in the examples/omp_simplef file.
Topics in this section are:
*Debugging OpenMP Programs”
*Viewing OpenMP Private and Shared Variables”
*Viewing OpenMP THREADPRIVATE Common Blocks”
*Viewing the OpenMP Stack Parent Token Line”