TotalView
A debugging and analysis tool for high-performance computing (HPC) applications
TotalView requires an environment module
In order to use TotalView, you must first load the appropriate environment module:
module load gnu openmpi totalview
Introduction#
TotalView is a dynamic source code and memory debugging tool for C, C++, and Fortran applications, and it includes memory debugging and analysis, and OpenACC / CUDA debugging capabilities.
To watch an official video tutorial on getting started with TotalView, visit the TotalView video tutorial page.
Using TotalView through Open OnDemand#
Preparing the program#
First, launch the RCC Desktop interactive app in Open OnDemand.
If not already done, ensure you have compiled your C/C++/Fortran program with the -g
flag for debugging. For example, a Fortran file example.f90
should be compiled as:
Interactively debugging a program with TotalView#
To begin the interactive session with TotalView, run the following commands in the RCC Desktop terminal:
After entering the above commands, you will see the TotalView GUI homescreen:If you are debugging an individual program, click the "Debug a program" button. If you are debugging a parallel program, click the "Debug a parallel program" button.
From here, if you are debugging an individual program select the compiled file you want to debug (in our instance "example").
If you are debugging a parallel program, select the compiled file and parrallel system you want to use.
After selecting the above parameters, click "Load Session" and begin debugging your program.
For more information, refer to the TotalView Documentation.
Using TotalView on the Command Line#
For guidance on accessing TotalView through the Command Line Interface (CLI), refer to the TotalView CLI documentation.