Skip to content

Commit 78c60a8

Browse files
authored
Merge pull request #160 from su2code/develop
Develop
2 parents cd2baa8 + b67d3da commit 78c60a8

File tree

13 files changed

+445
-0
lines changed

13 files changed

+445
-0
lines changed

_docs_v7/Build-SU2-Linux-MacOS.md

+18
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ Options can be passed to the script to enable or disable different features of S
134134
| `-Denable-pastix` | `false` | enable PaStiX support |
135135
| `-Denable-mpp` | `false` | enable Mutation++ support |
136136
| `-Denable-mixedprec` | `false` | enable the use of single precision on linear solvers and preconditioners |
137+
| `-Denable-mlpcpp` | `false` | enable the use of multi-layer perceptrons for data-driven fluid models |
138+
| `-Denable-gprof` | `false` | enable profiling of SU2 through `gprof` |
137139

138140
For example to enable AD support pass the option to the `meson.py` script along with a value:
139141
```
@@ -186,6 +188,22 @@ If the use of BLAS is restricted to RBF interpolation, parallel versions of Open
186188

187189
**Note:** The BLAS library needs to provide support for LAPACK functions. If this is not the case, the linker will fail with "undefined reference" errors, this problem can be solved by installing LAPACK and specifying it as an extra dependency when running `meson.py` using `-Dextra-deps=lapack` (this uses pkg-config, use commas to separate the names of multiple extra dependencies).
188190

191+
#### Profiling for developers ####
192+
193+
Profiling allows developers to identify inefficiencies in their code. SU2 can be compiled with profiling enabled through `-Denable-gprof=true`. After reconfiguration of meson and compiling the code, profiling is enabled for your SU2 executable. In order to retrieve the profiling analysis information, first run your simulation as normal. The following example is for `SU2_CFD`, although profiling is also supported for `SU2_CFD_AD`.
194+
195+
```
196+
/path/to/binary/SU2_CFD config.cfg
197+
```
198+
199+
After completion, a file called `gmon.out` is generated in your current working directory, indicating that the profiling was successful. In order to compile the analysis, run the command
200+
201+
```
202+
gprof /path/to/binary/SU2_CFD > analysis.txt
203+
```
204+
205+
Now the file `analysis.txt` contains the profiling analysis summary. For more advanced features on using `gprof` for profiling, see the [GNU gprof website](https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html).
206+
189207
### Compilation ###
190208

191209
Finally to compile and install SU2 use

_tutorials/incompressible_flow/Inc_Combustion/Inc_Combustion.md

+427
Large diffs are not rendered by default.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)