... | ... | @@ -5,4 +5,14 @@ |
|
|
## Building the code for profiling
|
|
|
### Configuration
|
|
|
|
|
|
We |
|
|
\ No newline at end of file |
|
|
We uses the scorep compiler wrapper to compile our code. The easiest way to inject them into the build chain is to specify them during the [configuration](Building#configuration) phase[^1]:
|
|
|
```
|
|
|
$cmake ... -DCMAKE_CXX_COMPILER=scorep-icpc -DCMAKE_C_COMPILER=scorep-icc ...
|
|
|
```
|
|
|
You need to decide which build type you want to use. The trick is to find te right compromise between optimization and usability of the retrieved data. *RelWithDebInfo* can be a reasonable choice:
|
|
|
|
|
|
```
|
|
|
$cmake ... -DCMAKE_BULD_TYPE=RelWithDebInfo ...
|
|
|
```
|
|
|
|
|
|
[^1]: you can alternatively specify those options in the CMakeCache.txt file generated in the build directory. |
|
|
\ No newline at end of file |