| ... | @@ -24,7 +24,7 @@ In order to be able to profile `for` loops, the [Salt](https://github.com/ParaTo |
... | @@ -24,7 +24,7 @@ In order to be able to profile `for` loops, the [Salt](https://github.com/ParaTo |
|
|
Create the Conda environment as follows:
|
|
Create the Conda environment as follows:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
mamba create --name profilers python=3.10 sphinx mpich-mpifort mpich-mpicc mpich-mpicxx netcdf4 six c-compiler compilers cxx-compiler clangdev flang llvmdev cmake
|
|
mamba create --name profilers python=3.10 sphinx mpich-mpifort mpich-mpicc mpich-mpicxx netcdf4 six c-compiler compilers cxx-compiler clangdev llvmdev cmake
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
Activate the environment:
|
|
Activate the environment:
|
| ... | @@ -58,6 +58,7 @@ export PROFILER_PATH=/home/BARRIER/Softwares/profilers/install-scorep |
... | @@ -58,6 +58,7 @@ export PROFILER_PATH=/home/BARRIER/Softwares/profilers/install-scorep |
|
|
export MPICH_CXX=g++
|
|
export MPICH_CXX=g++
|
|
|
export MPICH_CC=gcc
|
|
export MPICH_CC=gcc
|
|
|
export MPICH_FC=gfortran
|
|
export MPICH_FC=gfortran
|
|
|
|
export MPICH_F77=gfortran
|
|
|
|
|
|
|
|
# Define compiler variables
|
|
# Define compiler variables
|
|
|
export CC=gcc
|
|
export CC=gcc
|
| ... | @@ -94,12 +95,13 @@ export PROFILER_PATH=/home/BARRIER/Softwares/profilers/install-tau |
... | @@ -94,12 +95,13 @@ export PROFILER_PATH=/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++
|
|
|
export MPICH_CC=clang
|
|
export MPICH_CC=clang
|
|
|
export MPICH_FC=flang-new
|
|
export MPICH_FC=gfortran
|
|
|
|
export MPICH_F77=gfortran
|
|
|
|
|
|
|
|
# Define compiler variables
|
|
# Define compiler variables
|
|
|
export CC=clang
|
|
export CC=clang
|
|
|
export FC=flang-new
|
|
export FC=gfortran
|
|
|
export F77=flang-new
|
|
export F77=gfortran
|
|
|
export CXX=clang++
|
|
export CXX=clang++
|
|
|
export MPICC=mpicc
|
|
export MPICC=mpicc
|
|
|
export MPICXX=mpic++
|
|
export MPICXX=mpic++
|
| ... | @@ -115,10 +117,10 @@ export PATH=$PROFILER_PATH/x86_64/bin/:$PATH |
... | @@ -115,10 +117,10 @@ export PATH=$PROFILER_PATH/x86_64/bin/:$PATH |
|
|
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=flang-new -bfd=download -unwind=download -zlib=download
|
|
./configure -prefix=$PROFILER_PATH/ -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=flang-new -bfd=download -unwind=download -zlib=download -mpi
|
|
./configure -prefix=$PROFILER_PATH/ -c++=clang++ -cc=clang -fortran=gfortran -bfd=download -unwind=download -zlib=download -mpi
|
|
|
make install
|
|
make install
|
|
|
```
|
|
```
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |