... | @@ -3,7 +3,6 @@ |
... | @@ -3,7 +3,6 @@ |
|
[Scalasca](http://www.scalasca.org/) is the only profiler we'll describe for now. This article main source is the [User's Guide](https://apps.fz-juelich.de/scalasca/releases/scalasca/2.4/docs/UserGuide.pdf#section.2.4)
|
|
[Scalasca](http://www.scalasca.org/) is the only profiler we'll describe for now. This article main source is the [User's Guide](https://apps.fz-juelich.de/scalasca/releases/scalasca/2.4/docs/UserGuide.pdf#section.2.4)
|
|
|
|
|
|
## Building the code for profiling
|
|
## Building the code for profiling
|
|
### Configuration
|
|
|
|
|
|
|
|
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]:
|
|
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]:
|
|
```
|
|
```
|
... | @@ -14,5 +13,6 @@ You need to decide which build type you want to use. The trick is to find te rig |
... | @@ -14,5 +13,6 @@ You need to decide which build type you want to use. The trick is to find te rig |
|
```
|
|
```
|
|
$cmake ... -DCMAKE_BULD_TYPE=RelWithDebInfo ...
|
|
$cmake ... -DCMAKE_BULD_TYPE=RelWithDebInfo ...
|
|
```
|
|
```
|
|
|
|
Once you're ok with the configuration, just [build](Building#compilation) as usual.
|
|
|
|
|
|
[^1]: you can alternatively specify those options in the CMakeCache.txt file generated in the build directory. |
|
[^1]: you can alternatively specify those options in the CMakeCache.txt file generated in the build directory. |
|
|
|
\ No newline at end of file |