Download presentation
Presentation is loading. Please wait.
Published byElfreda Walsh Modified over 9 years ago
1
HPCC Mid-Morning Break Dirk Colbry, Ph.D. Research Specialist Institute for Cyber Enabled Discovery TotalView Parallel Debugger
2
Prerequisites for running TotalView Compiling with the –g option How to run TotalView with serial code. How to run TotalView using openmpi
3
Prerequisites Requires a working X11 server https://wiki.hpcc.msu.edu/display/hpccdoc s/Installing+an+X-server+on+Windows https://wiki.hpcc.msu.edu/display/hpccdoc s/Installing+an+X-server+on+Windows module load totalview already on by default on the dev nodes.
4
Compiling your code You need to add the –g option to either your compile command. The –g option adds links to your source code from executable. If you do not add the –g option: TotalView will still work. However, it will not show you your code. Instead it will show you machine code.
5
Serial Totalview Use the following command to start totalview: totalview./programname If you have input arguments totalview./programname –a
6
Basic TotalView Interface
7
Startup Parameters
8
Select Replay Engine
9
Main Window Variable Stack Source Code Navigatio n Bar Program Stack Go Button
10
Main Window
11
Tracking Down an Error Use your mouse to select different functions in your stack.
12
Program Navigation Next – Move to next line Prev – Move to previous line Step – Step into a function Caller – Move back to call of function
13
Break Points Click on Line number to add/remove a break point. Blue Arrow Represents farthest forward the program has run. Yellow arrow represents the current line being displayed. Breakpoints are show in the bottom panel
14
Other interface options Right click on a function name and select “Dive” to look at the code for that function. Hover your mouse pointer over a variable to see the current values.
15
TotalView and openmpi Compile your code using openmpi. module swap mvapich openmpi Don’t forget the –g option Use totalview interface to set up your mpitest Totalview &
16
MPI New Program
17
Process Window
18
MPI Interface Process Navigation
19
More Information http://www.totalviewtech.com/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.