Difference between revisions of "Guide:POINTTutorial"

From Tau Wiki
Jump to: navigation, search
Line 53: Line 53:
 
Now the bars are ordered by inclusive time.
 
Now the bars are ordered by inclusive time.
  
===Selective Instrumentation===
+
==Selective Instrumentation==
  
 
  Click on the "TAU: ParaProf Manager" window
 
  Click on the "TAU: ParaProf Manager" window
Line 59: Line 59:
 
  Select "Create Selective Instrumentation File"
 
  Select "Create Selective Instrumentation File"
  
A window will pop up showing a number of routines.
+
A window will pop up showing a number of routines. These routine have been flagged by TAU as lightweight routine. Routines that are less than 10 microseconds per call and are called more than 100,000 times (see above). Excluding these routines from instrumentation will help control the instrumentation overhead.
 +
 +
Click "Save"
 +
Close ParaProf

Revision as of 19:16, 19 May 2009

Use Live DVD version 2, built 5/18/09

Instrumenting NPB

cd workshop-point/NPB3.1
vi config/make.def

notice that the MPIF77 variable is set to tau_f90.sh this will enable TAU automatic instrumentation with PDT.

Setting TAU configuration

close vi.

setenv TAU_MAKEFILE=$TAU/Makefile-tau-mpi-pdt

This tells TAU to perform a basic instrumentation using PDT and the TAU MPI wrapper library. Now build the BT example program

make bt CLASS=S NPROCS=1

Running NPB example

cd bin
mpirun -np 1 ./bt.S.1

TAU Profiles will automatically be generated in the current directory, one profile file per thread.

ls 
bt.S.1  profile.0.0.0


Viewing TAU profiles

To get a simple summary of the TAU profiles type:

pprof

This gives you a basic idea of how much time was spent in different portions of the application.

ParaProf

Let's view this profile in TAU ParaProf profile viewer

paraprof

Paraprof will open load the profile a show a single bar representing Node 0. Each colored subsection represents a different routine in NPB the length of a subsection is proportional to the exclusive time spent in that routine.

Right click on the "Node 0" label
Select "Show Thread Bar Chart"

A new window will pop up ordering each routine by the amount of exclusive time.

Click "Options" -> "Select Metric..." -> "Inclusive"

Now the bars are ordered by inclusive time.

Selective Instrumentation

Click on the "TAU: ParaProf Manager" window
Right click on the trial name: "bin/NPB3.1/...."
Select "Create Selective Instrumentation File"

A window will pop up showing a number of routines. These routine have been flagged by TAU as lightweight routine. Routines that are less than 10 microseconds per call and are called more than 100,000 times (see above). Excluding these routines from instrumentation will help control the instrumentation overhead.

Click "Save"
Close ParaProf