|
Article ID: 95
Last updated: 31 Dec, 2025
TotalView is a GUI-based debugging tool that provides control over processes and thread execution, as well as visibility into program state and variables, for C, C++ and Fortran applications. It also provides memory debugging to detect errors such as memory leaks, deadlocks, and race conditions. You can use TotalView to debug serial, OpenMP, or MPI codes. Using TotalView to Debug Your CodeTo find out which versions are available as modules, use the module avail command. Before You BeginOur current licenses allow using TotalView with MemoryScape, ReplayEngine, and CUDA support for up to a total of 256 processes on NAS x86_64 cluster systems and shared memory systems. Use the following command to find out whether there are unused licenses before you start TotalView:
Ensure that X11 forwarding is set up on your system. Alternately, you can use the ssh -X or -Y options to enable X11 forwarding for your SSH session. Note: If you are using a NAS-supported workstation or compute server, X11 forwarding should already be set up on your system. If the response of the GUI via X11 forwarding is slow, you will need to set up a VNC session. Complete the following steps:
Debugging with TotalViewLoad the module:
The method you use to run TotalView depends on the application you want to debug. For Serial ApplicationsLaunch TotalView by running the totalview command and specifying the application:
Or, if your application requires arguments:
For MPI Applications Built with HPE MPTThe old -tv option of HPE MPT's mpiexec_mpt is no longer supported (since mpt.2.23). Use the following method instead:
For more information, see the TotalView documentation. |