Download presentation
Presentation is loading. Please wait.
Published byJosef Barratt Modified over 9 years ago
1
TOTALVIEW Majdi Baddourah June 4, 2002 NERSC
2
Objective How to use totalview MPI codes OpenMp Codes
3
TOTALVIEW Debugging tool Supported by ETNUS Works very well most of the time Line mode and x-windows mode Used to debug FORTRAN and C
4
Usage module load totalview mpxlf –g main.f totalview poe –a./a.out –nodes 2 –procs 32
5
TOTALVIEW Window
6
Program Window
7
File Options
8
Process Options
9
Action Point Options
10
Tools Options
11
POE Window
12
Source Code Window
13
Set Breakpoint right mouse click left mouse click
14
Breakpoint options
15
Start Exectution left mouse click
16
See Other Processors left mouse click
17
Setting Evaluation Function
18
right mouse click
19
Evaluation Function
20
Evaluation Functions
22
right mouse click
23
Variable Value
24
Looking at the vector x
25
Looking at a Slice of an Array
26
Looking at Large Arrays parameter(n=10 000 000) real*8 a(n) do i = 1, n a(i) = float(i) enddo write(*,*)' a(',n,')=',a(n) stop end You can view the content of the variable A without problems. You can not look at statistics or visualize the variable.
27
Message Queue
28
C Program
30
Structure Value
31
Looking at Structure
32
Watch Point
33
Unconditional Watchpoint
34
Checking the Value
35
Attaching a Running Job Run Totalview using this command totalview & poe./a.out –nodes 2 –procs 32 Click on the poe job
36
Attaching a Job
37
Running the Job Click Go
38
Detaching a Job Click detach
39
OpenMp setenv OMP_NUM_THREADS 4 module load totalview
40
Compile xlf90_r -o a.out -g -qfixed -qsmp=omp -qstrict nowait.f -bmaxstack:0x70000000 Dive on J
41
Compile with noopt xlf90_r -o a.out -qfixed -qsmp=omp -g -qstrict nowait.f -qsmp=noopt -bmaxstack:0x70000000
42
OpenMp right mouse click Click go
43
Threads 3 Dive on b
44
Shared variables
45
OpenMp Dive on j
46
Private Variables
47
TOTALVIEW X-Resources totalview*searchPath:/usr/common/homes/m/majdi/NETCDF4/src/libsrc, \ /usr/common/homes/m/majdi/NETCDF4/src/fortran, \ /usr/common/homes/m/majdi/NETCDF4/src/f90, \ /usr/common/homes/m/majdi/NETCDF4/src, \ /scratch/scratchdirs/majdi, /scratch/scratchdirs/majdi/NimRot
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.