Ceci est une ancienne révision du document !
Perfsuite
PerfSuite is a collection of tools, utilities, and libraries for software performance analysis. It is relatively easy to use and is targeted to users at all levels of expertise.
Installed version
- 1.1.4 built with GCC and PAPI
PerfSuite is available as a module. To load PerfSuite, use the module load command as follows:
$ module load perf/perfsuite/1.1.4
Basic usage
- run program with
psruncommand - view statitistics with
psprocesscommand
To measure code performance using PerfSuite, use the psrun command as follows:
For serial codes:
$ psrun [-c configuration.xml] a.out
For OpenMP codes:
$ export OMP_NUM_THREADS x $ psrun -p [-c configuration.xml] a.out
For MPI codes:
$ module load mpi/openmpi $ mpirun -np xx psrun -f [-c configuration.xml] a.out
An XML will be generated at the end of the execution
The
psrun command uses an XML configuration file to determine the mode of operation (counting or profiling). If you do not specify an XML configuration file, the default file itimer.xml will be used.
For post-processing the output, use the psprocess command as follows:
$ psprocess a.out.pid.hostname.xml
Example
Execute Matmul (omp_matmul_03.exe) program with N=5000
$ export OMP_NUM_THREADS=8 $ psrun ./omp_matmul_03.exe 5000
The output file is omp_matmul_03.exe.49333.mesoshared.xml