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 | |||
| tau [2015/02/25 08:45] – modification externe 127.0.0.1 | 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>To display profile files we need to enable it first:< | ||
| - | |||
| - | - 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/ | ||
| - | |||
| - | |||
| - | **Tracing**\\ | ||
| - | |||
| - | <code bash> | ||
| - | |||
| - | $ module load tau | ||
| - | |||
| - | $ mpicc jacobi.s -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> | ||
| - | |||
| - | {{: | ||