Ceci est une ancienne révision du document !
TAU
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.
Installed version
- 2.23 compiled with GCC and Open MPI
- 2.23 compiled with ICC and Open MPI
use module avail tau to view installed versions.
example :
$ module avail tau tau/ompi-gcc/2.23 tau/ompi-icc/2.23(default)
TAU usage and displaying tools
- Dynamic Instrumentation: No change to your application's source or binary code is necessary. Using the tau_exec command before your executable generates both profile and trace data.
- Compiler-Based Instrumentation: TAU can also be used to compile your application using wrapper scripts for
mpicc,mpicxx, andmpif90. Tau instruments the binary code without changing the source. Using thetau_execcommand before the TAU-compiled executable generates profile and trace data. Data is collected on bothMPIcalls and your application's function calls.
Dynamic Instrumentation
Tracing is disabled by default, so we enable it first:
export TAU_TRACE=1
- Load the needed tau
$ module load tau - Compile
$ mpicc hello.c -o hello
- Dynamic instrumentation
$ mpirun -np $NSLOTS tau_exec ./hello
- Run TAU's recompiling tool
$ tau_treemerge.pl
- After this it will have generated some output files, merge them with the next command
$ tau2slog2 tau.trc tau.edf -o tau.slog2
- Now just open the new merged file with the default displaying tool
$ jumpshot tau.slog2 - For profiling just call
pprofandparaprofprograms to view profilers results
Compiler-Based Instrumentation
For each compiler type there is TAU wrapper, for example:
tau_cxx.shforC++compilertau_f90.shfor Fortarn 90 compilertau_cc.shfot C compiler
Tau warapper uses $TAU_MAKEFILE to compile programs.
- Compile programs
tau_cc.sh hello.c -o hello - Run program as usual
mpirun -np $NSLOTS ./hello
- Follow steps 4, 5, 6 like for dynamic instrumentation
You can also view profilers information with: pprof or paraprof

