| ... | @@ -52,7 +52,7 @@ We will therefore need to define some environment variables: |
... | @@ -52,7 +52,7 @@ We will therefore need to define some environment variables: |
|
|
|
|
|
|
|
```
|
|
```
|
|
|
# Install folder for Score-P
|
|
# Install folder for Score-P
|
|
|
export PROFILER_PATH=/home/BARRIER/Softwares/profilers/install-scorep
|
|
export PROFILER_PATH_SCOREP=/home/BARRIER/Softwares/profilers/install-scorep
|
|
|
|
|
|
|
|
# Change the compiler in MPICH wrappers:
|
|
# Change the compiler in MPICH wrappers:
|
|
|
export MPICH_CXX=g++
|
|
export MPICH_CXX=g++
|
| ... | @@ -71,15 +71,15 @@ export MPIFORT=mpifort |
... | @@ -71,15 +71,15 @@ export MPIFORT=mpifort |
|
|
export FCFLAGS="-ffree-form"
|
|
export FCFLAGS="-ffree-form"
|
|
|
|
|
|
|
|
# Define library path and path
|
|
# Define library path and path
|
|
|
export LD_LIBRARY_PATH=$PROFILER_PATH/lib:$CONDA_PREFIX/lib
|
|
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$PROFILER_PATH_SCOREP/lib
|
|
|
export PATH=$PROFILER_PATH/bin:$PATH
|
|
export PATH=$PROFILER_PATH_SCOREP/bin:$PATH
|
|
|
export PATH=$PROFILER_PATH/x86_64/bin/:$PATH
|
|
export PATH=$PROFILER_PATH_SCOREP/x86_64/bin/:$PATH
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
When the variables are defined, go the Score-P folder, activate the `profilers` environment and type:
|
|
When the variables are defined, go the Score-P folder, activate the `profilers` environment and type:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
./configure --prefix=$PROFILER_PATH --without-shmem --with-libbfd=download --with-libunwind=download
|
|
./configure --prefix=$PROFILER_PATH_SCOREP --without-shmem --with-libbfd=download --with-libunwind=download
|
|
|
make
|
|
make
|
|
|
make install
|
|
make install
|
|
|
```
|
|
```
|
| ... | @@ -90,7 +90,7 @@ To allow for source instrumentation using Tau, we need to use the clang compiler |
... | @@ -90,7 +90,7 @@ To allow for source instrumentation using Tau, we need to use the clang compiler |
|
|
|
|
|
|
|
```
|
|
```
|
|
|
# Install folder for Tau
|
|
# Install folder for Tau
|
|
|
export PROFILER_PATH=/home/BARRIER/Softwares/profilers/install-tau
|
|
export PROFILER_PATH_TAU=/home/BARRIER/Softwares/profilers/install-tau
|
|
|
|
|
|
|
|
# Change the compiler in MPICH wrappers:
|
|
# Change the compiler in MPICH wrappers:
|
|
|
export MPICH_CXX=clang++
|
|
export MPICH_CXX=clang++
|
| ... | @@ -109,9 +109,9 @@ export MPIFORT=mpifort |
... | @@ -109,9 +109,9 @@ export MPIFORT=mpifort |
|
|
export FCFLAGS="-ffree-form"
|
|
export FCFLAGS="-ffree-form"
|
|
|
|
|
|
|
|
# Define library path and path
|
|
# Define library path and path
|
|
|
export LD_LIBRARY_PATH=$PROFILER_PATH/lib:$CONDA_PREFIX/lib
|
|
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$PROFILER_PATH_TAU/lib
|
|
|
export PATH=$PROFILER_PATH/bin:$PATH
|
|
export PATH=$PROFILER_PATH_TAU/bin:$PATH
|
|
|
export PATH=$PROFILER_PATH/x86_64/bin/:$PATH
|
|
export PATH=$PROFILER_PATH_TAU/x86_64/bin/:$PATH
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
#### Compilation Salt
|
|
#### Compilation Salt
|
| ... | @@ -120,8 +120,8 @@ In order to install the Salt source instrumentation tool, go to the Salt folder |
... | @@ -120,8 +120,8 @@ In order to install the Salt source instrumentation tool, go to the Salt folder |
|
|
|
|
|
|
|
```
|
|
```
|
|
|
# configure SALT and generate build system
|
|
# configure SALT and generate build system
|
|
|
cmake -Wdev -Wdeprecated -S . -B $PROFILER_PATH -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++
|
|
cmake -Wdev -Wdeprecated -S . -B $PROFILER_PATH_TAU -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++
|
|
|
cmake --build $PROFILER_PATH --parallel # Add --verbose to debug something going wrong
|
|
cmake --build $PROFILER_PATH_TAU --parallel # Add --verbose to debug something going wrong
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
#### Compilation Tau
|
|
#### Compilation Tau
|
| ... | @@ -129,10 +129,10 @@ cmake --build $PROFILER_PATH --parallel # Add --verbose to debug something going |
... | @@ -129,10 +129,10 @@ cmake --build $PROFILER_PATH --parallel # Add --verbose to debug something going |
|
|
When the variables are defined, go to the Tau folder and type:
|
|
When the variables are defined, go to the Tau folder and type:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
./configure -prefix=$PROFILER_PATH/ -c++=clang++ -cc=clang -fortran=gfortran -bfd=download -unwind=download -zlib=download
|
|
./configure -prefix=$PROFILER_PATH_TAU/ -c++=clang++ -cc=clang -fortran=gfortran -bfd=download -unwind=download -zlib=download
|
|
|
make install
|
|
make install
|
|
|
|
|
|
|
|
./configure -prefix=$PROFILER_PATH/ -c++=clang++ -cc=clang -fortran=gfortran -bfd=download -unwind=download -zlib=download -mpi
|
|
./configure -prefix=$PROFILER_PATH_TAU/ -c++=clang++ -cc=clang -fortran=gfortran -bfd=download -unwind=download -zlib=download -mpi
|
|
|
make install
|
|
make install
|
|
|
```
|
|
```
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |