|
|
|
---
|
|
|
|
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.
|
| ... | ... | @@ -10,16 +11,15 @@ The tools that were tested are 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/)
|
|
|
|
- [Salt](https://github.com/ParaToolsInc/salt)
|
|
|
|
|
|
|
|
To use the full extent of Tau, we also encourage to download [PDT](https://www.cs.uoregon.edu/research/pdt/home.php)
|
|
|
|
|
|
|
|
## Install
|
|
|
|
## Preparing the install
|
|
|
|
|
|
|
|
### Download:
|
|
|
|
|
|
|
|
- PDT: http://tau.uoregon.edu/pdt.tgz
|
|
|
|
- Salt: `git clone --recursive https://github.com/ParaToolsInc/salt.git`
|
|
|
|
- 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
|
|
|
|
- Tau: `git clone https://github.com/UO-OACISS/tau2`
|
|
|
|
- Scalasca: https://apps.fz-juelich.de/scalasca/releases/scalasca/2.6/dist/scalasca-2.6.1.tar.gz
|
|
|
|
|
|
|
|
### Conda Environment
|
| ... | ... | @@ -70,6 +70,18 @@ export PATH=$PROFILER_PATH/x86_64/bin/:$PATH |
|
|
|
|
|
|
|
## Compilation
|
|
|
|
|
|
|
|
### Compilation Salt
|
|
|
|
|
|
|
|
Type the following:
|
|
|
|
|
|
|
|
```
|
|
|
|
export CC=clang
|
|
|
|
export CXX=clang++
|
|
|
|
# configure SALT and generate build system
|
|
|
|
cmake -Wdev -Wdeprecated -S . -B $PROFILER_PATH
|
|
|
|
cmake --build $PROFILER_PATH --parallel # Add --verbose to debug something going wrong
|
|
|
|
```
|
|
|
|
|
|
|
|
### Compilation PDT
|
|
|
|
|
|
|
|
Go the PDT folder type:
|
| ... | ... | |
| ... | ... | |