Ceci est une ancienne révision du document !
HPCToolkit
HPCToolkit is a suite of tools for tracing, profiling and analyzing parallel programs. It can accurately measure a program's amount of work and resource consumption, as well as user-defined derived metrics such as FLOPS inefficiency and (lack of) scaling behavior. These metrics can then be correlated with source code to pinpoint hotspots.
Installed versions
- 5.4.2 with GCC and OpenMPI and PAPI
- 5.4.2 with Intel and OpenMPI and PAPI
module avail perf/hpctoolkit to show all installed versionsAnd then load the needed version:
module load perf/hpctoolkit/gcc/5.4.2 for example
HPCToolkit usage and displaying tools
Dynamically linked applications
As HPCToolkit is based on sampling, there is no need for manual source code instrumentation. Compilation remains mostly unchanged; more importantly, it is highly recommended to compile the target program with debugging information and optimization turned on:
$ mpicc -g -O3 cpi.c -o cpi
Recover static program structure
Next, we must recover the static program structure from the linked binary, for which there is a tool named hpcstruct, typically launched with no extra arguments:
$ hpcstruct ./cpi
This will build a representation of the program's structure in cpi.hpcstruct (e.g. loop nesting, inlining) to be used later when profiling/tracing, so that performance metrics may accurately be associated with the correct code construct (be it a loop or a procedure).