| ... | ... | @@ -7,6 +7,7 @@ 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
|
| ... | ... | @@ -98,10 +99,15 @@ In the TAU folder, activate the `profilers` environment and type |
|
|
|
./configure -prefix=$PROFILER_PATH/ -papi=$PROFILER_PATH/ -pdt=$PROFILER_PATH/ -mpi -c++=g++ -cc=gcc -fortran=gfortran
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
{{< panel header="**Note**" header-bg="blue" >}}
|
|
|
|
NOTE DESCRIPTION
|
|
|
|
{{< /panel >}}
|
|
|
|
|
|
|
|
**Warning**: In TAU, each set of compile options generate a specific Makefile. In the above, the generated Makefile will include PAPI, PDT, Score-P and MPI. To compile a non-MPI program, re-compile TAU without the `-mpi` option
|
|
|
|
> [!CAUTION]
|
|
|
|
> In TAU, each set of compile options generate a specific Makefile. In the above, the generated Makefile will include PAPI, PDT, Score-P and MPI. To compile a non-MPI program, re-compile TAU without the `-mpi` option
|
|
|
|
|
|
|
|
**Important**: The `-scorep` options does not work due to a failure of shared library building of Score-P
|
|
|
|
> [!important]
|
|
|
|
> The `-scorep` options does not work due to a failure of shared library building of Score-P
|
|
|
|
|
|
|
|
## Profile
|
|
|
|
|
| ... | ... | @@ -158,10 +164,10 @@ Here, we specify that loops will be instrumented in all the functions of the pro |
|
|
|
|
|
|
|
Now, to compile the program, replace the standard compile commands as follows:
|
|
|
|
|
|
|
|
- `gcc`` -> ``tau_cc.sh`
|
|
|
|
- `g++`` -> ``tau_cxx.sh`
|
|
|
|
- `gfortran`` -> ``tau_f90.sh`
|
|
|
|
- `f77`` -> ``tau_f70.sh`
|
|
|
|
- `gcc` -> `tau_cc.sh`
|
|
|
|
- `g++` -> `tau_cxx.sh`
|
|
|
|
- `gfortran` -> `tau_f90.sh`
|
|
|
|
- `f77` -> `tau_f70.sh`
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
| ... | ... | |
| ... | ... | |