| ... | ... | @@ -154,21 +154,21 @@ make install |
|
|
|
|
|
|
|
Once everything is installed, you will be able to compile your code using the profiler tools.
|
|
|
|
|
|
|
|
But before starting, you might need to add the following line before:
|
|
|
|
### Profile with TAU
|
|
|
|
|
|
|
|
To profile with TAU, you first need to manually define the `LD_LIBRARY_PATH`:
|
|
|
|
|
|
|
|
```
|
|
|
|
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$PROFILER_PATH/lib
|
|
|
|
export PATH=$PROFILER_PATH/bin:$PATH
|
|
|
|
export PATH=$PROFILER_PATH/x86_64/bin/:$PATH
|
|
|
|
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$PROFILER_PATH_TAU/x86_64/zlib-1.3.1/lib:$PROFILER_PATH_TAU/x86_64/binutils-2.40/lib:PROFILER_PATH_TAU/x86_64/libunwind-1.6.2-clang/lib:$PROFILER_PATH_TAU/lib
|
|
|
|
export PATH=$PROFILER_PATH_TAU/bin:$PATH
|
|
|
|
export PATH=$PROFILER_PATH_TAU/x86_64/bin/:$PATH
|
|
|
|
```
|
|
|
|
|
|
|
|
### Profile with TAU
|
|
|
|
|
|
|
|
To profile with TAU, first define the proper Makefile to use and eventually additional tau options:
|
|
|
|
Next, you need to define the Tau Makefile that you will use and also
|
|
|
|
|
|
|
|
```
|
|
|
|
export TAU_MAKEFILE=$PROFILER_PATH/x86_64/lib/Makefile.tau-clang-mpi
|
|
|
|
export TAU_OPTIONS='-optKeepFiles -optVerbose -optTauSelectFile="select.tau"'
|
|
|
|
export TAU_OPTIONS='-optKeepFiles -optVerbose -optTauSelectFile="select.tau" -optSaltParser="saltfm" -optSaltInst'
|
|
|
|
```
|
|
|
|
|
|
|
|
In the above, the `-optKeepFiles` allows to keep intermediate files. The `-optTauSelectFile` specifies the file where additional profiling options are provided. These options are provided in a `select.tau` file, which may be as follows:
|
| ... | ... | |
| ... | ... | |