| ... | ... | @@ -2,6 +2,7 @@ |
|
|
|
title: Profilage de code (C/C++/Fortran)
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
| ... | ... | @@ -60,7 +61,9 @@ We will therefore need to define some environment variables: |
|
|
|
```
|
|
|
|
# Install folder for Score-P
|
|
|
|
export PROFILER_PATH_SCOREP=/home/BARRIER/Softwares/profilers/install-scorep
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
# Change the compiler in MPICH wrappers:
|
|
|
|
export MPICH_CXX=g++
|
|
|
|
export MPICH_CC=gcc
|
| ... | ... | @@ -98,7 +101,9 @@ To allow for source instrumentation using Tau, we need to use the clang compiler |
|
|
|
```
|
|
|
|
# Install folder for Tau
|
|
|
|
export PROFILER_PATH_TAU=/home/BARRIER/Softwares/profilers/install-tau
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
# Change the compiler in MPICH wrappers:
|
|
|
|
export MPICH_CXX=clang++
|
|
|
|
export MPICH_CC=clang
|
| ... | ... | |
| ... | ... | |