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 | ||
| outils_analyse:tau [2015/02/27 13:30] – supprimée admin | outils_analyse:tau [2016/04/22 09:04] (Version actuelle) – 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.25 compiled with GCC and Open MPI | ||
| + | * 2.25 compiled with ICC and Open MPI | ||
| + | |||
| + | use '' | ||
| + | |||
| + | example : | ||
| + | |||
| + | |||
| + | |||
| + | <code bash> | ||
| + | |||
| + | $ module avail perf/tau | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== TAU usage and displaying tools ===== | ||
| + | |||
| + | - **Dynamic Instrumentation**: | ||
| + | - **Compiler-Based Instrumentation**: | ||
| + | |||
| + | ==== Dynamic Instrumentation ==== | ||
| + | |||
| + | |||
| + | <note tip> | ||
| + | | ||
| + | * TAU_TRACE=1 (defaul 0) to view traces | ||
| + | * TAU_PROFILE=1 (default) | ||
| + | * TAU_COMM_MATRIX=1 default 0) to view 3D communication matrix | ||
| + | |||
| + | </ | ||
| + | |||
| + | - Load the needed tau <code bash>$ module load perf/ | ||
| + | - 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/ | ||
| + | |||
| + | |||
| + | **Tracing**\\ | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | $ module load perf/ | ||
| + | |||
| + | $ 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: | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | $ paraprof --pack tau.ppk | ||
| + | |||
| + | </ | ||
| + | Now, we can visualize the tau.ppk file by using | ||
| + | Paraprof | ||
| + | <code bash> | ||
| + | $ paraprof | ||
| + | </ | ||
| + | |||
| + | <note tip> | ||
| + | |||
| + | {{: | ||