|
|
|
---
|
|
|
|
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.
|
| ... | ... | @@ -33,7 +13,8 @@ In this Wiki, we will provide a methodology to install and run some code profile |
|
|
|
- Tau: http://tau.uoregon.edu/tau.tgz
|
|
|
|
- PDT: http://tau.uoregon.edu/pdt.tgz
|
|
|
|
- PAPI: https://icl.utk.edu/projects/papi/downloads/papi-7.2.0b2.tar.gz
|
|
|
|
- BFD: http://www.cs.uoregon.edu/research/paracomp/tau/tauprofile/dist/binutils-2.36.1.tar.gz
|
|
|
|
- BFD: https://github.com/libunwind/libunwind/releases/download/v1.6.2/libunwind-1.6.2.tar.gz
|
|
|
|
- Unwind: https://github.com/libunwind/libunwind/releases/download/v1.6.2/libunwind-1.6.2.tar.gz
|
|
|
|
|
|
|
|
### Environment
|
|
|
|
|
| ... | ... | @@ -122,7 +103,7 @@ make install |
|
|
|
Go the Score-P folder, activate the `profilers` environment and type:
|
|
|
|
|
|
|
|
```
|
|
|
|
./configure --prefix=$PROFILER_PATH --with-mpi=mpich4 --without-shmem --with-libbfd=$PROFILER_PATH --with-libunwind=download --enable-shared
|
|
|
|
./configure --prefix=$PROFILER_PATH --with-mpi=mpich4 --without-shmem --with-libbfd=$PROFILER_PATH --with-libunwind=$PROFILER_PATH --enable-shared
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
```
|
| ... | ... | @@ -134,7 +115,7 @@ This will restore the Conda environment |
|
|
|
In the TAU folder, activate the `profilers` environment and type
|
|
|
|
|
|
|
|
```
|
|
|
|
./configure -prefix=$PROFILER_PATH/ -papi=$PROFILER_PATH/ -pdt=$PROFILER_PATH/ -scorep=$PROFILER_PATH -mpi -c++=g++ -cc=gcc -fortran=gfortran -bfd=$PROFILER_PATH -unwind=download
|
|
|
|
./configure -prefix=$PROFILER_PATH/ -papi=$PROFILER_PATH/ -pdt=$PROFILER_PATH/ -scorep=$PROFILER_PATH -mpi -c++=g++ -cc=gcc -fortran=gfortran -bfd=$PROFILER_PATH -unwind=$PROFILER_PATH
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
| ... | ... | |
| ... | ... | |