Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| tau [2014/04/01 08:59] – [Dynamic Instrumentation] admin | tau [2015/02/27 13:28] (Version actuelle) – supprimée admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== 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 '' | ||
| - | |||
| - | example : | ||
| - | |||
| - | <code bash> | ||
| - | |||
| - | $ module avail tau | ||
| - | |||
| - | tau/ | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== TAU usage and displaying tools ===== | ||
| - | |||
| - | * **Dynamic Instrumentation**: | ||
| - | * **Compiler-Based Instrumentation**: | ||
| - | |||
| - | ==== Dynamic Instrumentation ==== | ||
| - | |||
| - | <note tip> | ||
| - | - Load the needed tau <code bash>$ module load tau</ | ||
| - | - Compile <code bash>$ mpicc hello.c -o hello</ | ||
| - | - Dynamic instrumentation <code bash>$ mpirun -np $NSLOTS tau_exec ./ | ||
| - | - Run TAU's recompiling tool < | ||
| - | - After this it will have generated some output files, merge them with the next command <code bash>$ tau2slog2 tau.trc tau.edf -o tau.slog2</ | ||
| - | - Now just open the new merged file with the default displaying tool <code bash>$ jumpshot tau.slog2</ | ||
| - | - For profiling just call '' | ||
| - | |||
| - | ==== Compiler-Based Instrumentation==== | ||
| - | |||
| - | For each compiler type there is TAU wrapper, for example: | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | Tau warapper uses '' | ||
| - | |||
| - | - Compile programs <code bash> | ||
| - | - Run program as usual <code bash> | ||
| - | - Follow steps 4, 5, 6 like for dynamic instrumentation | ||
| - | |||
| - | You can also view profilers information with: '' | ||
| - | |||
| - | ==== Example ==== | ||
| - | |||
| - | Let's profile/ | ||
| - | |||
| - | |||
| - | |||
| - | <code bash> | ||
| - | |||
| - | $ module load tau | ||
| - | |||
| - | $ mpicc jacobi.s -o jacobi | ||
| - | |||
| - | $ mpirun -np 4 ./jacobi | ||
| - | |||
| - | $ tau_treemerge.pl | ||
| - | |||
| - | $ tau2slog2 tau.trc tau.edf -o tau.slog2 | ||
| - | |||
| - | $ jumpshot tau.slog2 | ||
| - | |||
| - | </ | ||
| - | |||
| - | {{: | ||
| - | |||