TAU is an MPI program analyzer. It generates all necessary information during the program execution, so that it can be read after it and displayed by a specialized program.
use module avail tau to view installed versions.
example :
$ module avail perf/tau
mpicc, mpicxx, and mpif90. Tau instruments the binary code without changing the source. Using the tau_exec command before the TAU-compiled executable generates profile and trace data. Data is collected on both MPI calls and your application's function calls.$ module load perf/tau/icc
$ mpicc hello.c -o hello
$ mpirun -np $NSLOTS tau_exec ./hello
$ tau_treemerge.pl
$ tau2slog2 tau.trc tau.edf -o tau.slog2
$ jumpshot tau.slog2
pprof and paraprof programs to view profilers resultsFor each compiler type there is TAU wrapper, for example:
tau_cxx.sh for C++ compilertau_f90.sh for Fortarn 90 compilertau_cc.sh fot C compiler
Tau warapper uses $TAU_MAKEFILE to compile programs.
tau_cc.sh hello.c -o hello
mpirun -np $NSLOTS ./hello
You can also view profilers information with: pprof or paraprof
Let's profile/trace program (simple Jacobi iteration)
Tracing
$ module load perf/tau/icc $ mpicc jacobi.c -o jacobi $ mpirun -np 4 tau_exec ./jacobi $ tau_treemerge.pl $ tau2slog2 tau.trc tau.edf -o tau.slog2 $ jumpshot tau.slog2
Profiling
We need to pack all the profiles.* files in a
unique one:
$ paraprof --pack tau.ppk
Now, we can visualize the tau.ppk file by using Paraprof
$ paraprof