+ All Categories
Home > Documents > TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Date post: 16-Dec-2015
Category:
Upload: josef-barratt
View: 217 times
Download: 0 times
Share this document with a friend
Popular Tags:
47
TOTALVIEW Majdi Baddourah June 4, 2002 NERSC
Transcript
Page 1: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

TOTALVIEW

Majdi Baddourah

June 4, 2002

NERSC

Page 2: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Objective

• How to use totalview

• MPI codes

• OpenMp Codes

Page 3: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

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

Page 4: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Usage

• module load totalview

• mpxlf –g main.f

• totalview poe –a ./a.out –nodes 2 –procs 32

Page 5: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

TOTALVIEW Window

Page 6: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Program Window

Page 7: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

File Options

Page 8: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Process Options

Page 9: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Action Point Options

Page 10: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Tools Options

Page 11: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

POE Window

Page 12: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Source Code Window

Page 13: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Set Breakpoint

right mouse click

left mouse click

Page 14: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Breakpoint options

Page 15: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Start Exectution

left mouse click

Page 16: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

See Other Processors

left mouse click

Page 17: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Setting Evaluation Function

Page 18: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Setting Evaluation Function

right mouse click

Page 19: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Evaluation Function

Page 20: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Evaluation Functions

Page 21: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Evaluation Functions

Page 22: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Evaluation Functions

right mouse click

Page 23: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Variable Value

Page 24: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Looking at the vector x

Page 25: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Looking at a Slice of an Array

Page 26: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Looking at Large Arrays

parameter(n=10 000 000)real*8 a(n)do i = 1, n a(i) = float(i)enddowrite(*,*)' 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.

Page 27: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Message Queue

Page 28: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

C Program

Page 29: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

C Program

Page 30: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Structure Value

Page 31: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Looking at Structure

Page 32: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Watch Point

Page 33: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Unconditional Watchpoint

Page 34: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Checking the Value

Page 35: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Attaching a Running Job

Run Totalview using this commandtotalview &poe ./a.out –nodes 2 –procs 32Click on the poe job

Page 36: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Attaching a Job

Page 37: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Running the Job

Click Go

Page 38: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Detaching a Job

Click detach

Page 39: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

OpenMp

setenv OMP_NUM_THREADS 4

module load totalview

Page 40: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Compile

xlf90_r -o a.out -g -qfixed -qsmp=omp -qstrict nowait.f -bmaxstack:0x70000000

Dive on J

Page 41: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Compile with noopt

xlf90_r -o a.out -qfixed -qsmp=omp -g -qstrict nowait.f -qsmp=noopt -bmaxstack:0x70000000

Page 42: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

OpenMp

right mouse click

Click go

Page 43: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Threads 3

Dive on b

Page 44: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Shared variables

Page 45: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

OpenMp

Dive on j

Page 46: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

Private Variables

Page 47: TOTALVIEW Majdi Baddourah June 4, 2002 NERSC. Objective How to use totalview MPI codes OpenMp Codes.

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


Recommended