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

- made NDEBUG on in release #3427

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

- made NDEBUG on in release #3427

wants to merge 1 commit into from

Conversation

hnil
Copy link
Member

@hnil hnil commented Mar 6, 2023

  • make NDEBUG on in release.
  • draft pullrequest to test performance on ytelse

@hnil hnil marked this pull request as draft March 6, 2023 10:52
@bska
Copy link
Member

bska commented Mar 6, 2023

jenkins build this please

@atgeirr
Copy link
Member

atgeirr commented Mar 6, 2023

benchmark please

@ytelses
Copy link

ytelses commented Mar 6, 2023

Benchmark result overview:

Test Configuration Relative
opm-git OPM Benchmark: drogon - Threads: 1 1.01
opm-git OPM Benchmark: drogon - Threads: 8 1.19
opm-git OPM Benchmark: smeaheia - Threads: 1 1.007
opm-git OPM Benchmark: smeaheia - Threads: 8 1.152
opm-git OPM Benchmark: spe10_model_1 - Threads: 1 1.016
opm-git OPM Benchmark: spe10_model_1 - Threads: 8 1.018
opm-git OPM Benchmark: flow_mpi_extra - Threads: 1 1.015
opm-git OPM Benchmark: flow_mpi_extra - Threads: 8 1.035
opm-git OPM Benchmark: flow_mpi_norne - Threads: 1 1.022
opm-git OPM Benchmark: flow_mpi_norne - Threads: 8 1.048
  • Speed-up = Total time master / Total time pull request. Above 1.0 is an improvement. *

View result details @ https://www.ytelses.com/opm/?page=result&id=1986

@ytelses
Copy link

ytelses commented Mar 6, 2023

Benchmark result overview:

Test Configuration Relative
opm-git OPM Benchmark: drogon - Threads: 1 0.994
opm-git OPM Benchmark: drogon - Threads: 8 1.196
opm-git OPM Benchmark: smeaheia - Threads: 1 0.991
opm-git OPM Benchmark: smeaheia - Threads: 8 1.146
opm-git OPM Benchmark: spe10_model_1 - Threads: 1 1.008
opm-git OPM Benchmark: spe10_model_1 - Threads: 8 1.018
opm-git OPM Benchmark: flow_mpi_extra - Threads: 1 1.015
opm-git OPM Benchmark: flow_mpi_extra - Threads: 8 1.112
opm-git OPM Benchmark: flow_mpi_norne - Threads: 1 1.016
opm-git OPM Benchmark: flow_mpi_norne - Threads: 8 1.032
  • Speed-up = Total time master / Total time pull request. Above 1.0 is an improvement. *

View result details @ https://www.ytelses.com/opm/?page=result&id=1986

@hnil
Copy link
Member Author

hnil commented Mar 7, 2023

This is really strange on spe9 the effect i > 25 % on update on my machine single threaded.

@atgeirr
Copy link
Member

atgeirr commented Sep 28, 2023

I think the time has come for this to be merged.

The only reason to NOT define NDEBUG for release builds is to preserve assert()s in the executable as a last-resort guard against producing wrong results. Such assert()s have now been removed from most parts of the code (although a few remain) and replaced with if (problem) and exceptions which is a better: assert() should never be used for checking things depending on user input, only to ensure the programmer did not do something stupid.

The remaining assert()s combined with not defining NDEBUG can result in users experiencing errors terminating their runs, when it in some cases at least could have been possible to run through after timestep cuts. That is another reason to make this change.

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.

4 participants