Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set CMAKE_BUILD_TYPE default to RelWithDebInfo #2428

Merged
merged 1 commit into from
Sep 16, 2021
Merged

Conversation

bendudson
Copy link
Contributor

Default build type is Debug, which results in no optimisation flags. In simple examples (e.g blob2d) this runs nearly 100 times slower than when compiled with Release build type (see PR #2427). This change aims to improve the out-of-the-box performance.

Following suggestion of @d7919, using BuildType.cmake from GS2:
https://bitbucket.org/gyrokinetics/utils/src/8.1-RC/cmake/BuildType.cmake

As suggested by @ZedThree, using RelWithDebInfo as the default.
This results in compiler flags "-O2 -g" (on my laptop).

Following suggestion of @d7919, using BuildType.cmake from GS2:
https://bitbucket.org/gyrokinetics/utils/src/8.1-RC/cmake/BuildType.cmake

As suggested by @ZedThree, using RelWithDebInfo as the default.
This results in compiler flags "-O2 -g" (on my laptop).
@ZedThree
Copy link
Member

@dschwoerer The Fedora builds have stopped working, it looks like the petsc-mpich-devel package is missing. Please could you look into this?

@bendudson bendudson merged commit 17496bf into next Sep 16, 2021
@bendudson bendudson deleted the cmake-default-build branch September 16, 2021 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants