|
|
|
---
|
|
|
|
title: Profilage de Code
|
|
|
|
---
|
|
|
|
|
|
|
|
# Code profilers
|
|
|
|
|
|
|
|
In this Wiki, we will provide a methodology to install and run some code profilers. This has been tested on a specific Conda environment.
|
|
|
|
|
|
|
|
Three tools have been proposed:
|
|
|
|
|
|
|
|
- [Score-P](https://www.vi-hps.org/projects/score-p/)
|
|
|
|
- [TAU](https://www.cs.uoregon.edu/research/tau/home.php), which allows the profiling of `for` loops
|
|
|
|
- [Scalasca](https://www.scalasca.org/)
|
|
|
|
|
|
|
|
To use the full extent of Tau, we also encourage to download [PDT](https://www.cs.uoregon.edu/research/pdt/home.php)
|
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
### Download:
|
|
|
|
|
|
|
|
- PDT: http://tau.uoregon.edu/pdt.tgz
|
|
|
|
- Score-P: https://perftools.pages.jsc.fz-juelich.de/cicd/scorep/tags/scorep-8.4/scorep-8.4.tar.gz
|
|
|
|
- Tau: http://tau.uoregon.edu/tau.tgz
|
|
|
|
- PDT: http://tau.uoregon.edu/pdt.tgz
|
|
|
|
- Scalasca: https://apps.fz-juelich.de/scalasca/releases/scalasca/2.6/dist/scalasca-2.6.1.tar.gz
|
|
|
|
|
|
|
|
### Conda Environment
|
|
|
|
|
| ... | ... | @@ -185,7 +195,7 @@ paraprof profile.0.0.0 & |
|
|
|
|
|
|
|
To allow profiling with Score-P, replace the standard compile commands as follows:
|
|
|
|
|
|
|
|
- `g++` -> `scorep-g++`
|
|
|
|
- `g++` -> `scorep g++`
|
|
|
|
- `gfortran` -> `scorep gfortran`
|
|
|
|
- `mpicxx` -> `scorep mpicxx`
|
|
|
|
- `mpif90` -> `scorep mpif90`
|
| ... | ... | |
| ... | ... | |