Build

Visual Studio out-of-heap or stack overflow errors

Note: To prevent this you can also use the WSL setup.

The compilation especially of the processes in Release-config can be very memory hungry. Using dynamic Eigen shape matrices can reduce memory usage:

cmake . -DOGS_EIGEN_DYNAMIC_SHAPE_MATRICES=ON

You should also have at least 8 GB of RAM and even this can be not enough when compiling on multiple cores (which is the default). To build on only one core run the following in your build-directory:

cmake --build . --config Release -j 1

If this still fails you can disable building of the failing processes, e.g.:

cmake . -DOGS_BUILD_PROCESS_HT=OFF
cmake --build . --config Release -j 1

Compiler crash on Linux / macOS

The same as described above for Windows can happen on other platforms if there is not enough RAM to compile in parallel. See the note on Exceeding memory consumption during compilation.


This article was written by Lars Bilke. If you are missing something or you find an error please let us know.
Generated with Hugo 0.122.0 in CI job 504124 | Last revision: November 12, 2024
Commit: [BL/MPI] Use MPI_COMM_WORLD in reduceMin 4aae83e  | Edit this page on