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

Fix behaviour of fence and horizons in dry runs #196

Merged
merged 2 commits into from
Aug 14, 2023
Merged

Conversation

PeterTh
Copy link
Contributor

@PeterTh PeterTh commented Jul 20, 2023

Also added a unit test.

Note that I very minorly changed the existing dry run test: it was the only test to still use test_utils::set_test_env. Changing this to use the equivalent libenvpp functionality allowed me to get rid of the entire set_test_env test utility (which even had platform-specific code), making this a -20 net LoC change. Yay!

Edit:
Also fixed processing of horizons in dry runs and added a test for that.

@github-actions
Copy link

Check-perf-impact results: (9e900a306dc9f17e4a27439205a7680c)

❓ No new benchmark data submitted. ❓
Please re-run the microbenchmarks and include the results if your commit could potentially affect performance.

@PeterTh
Copy link
Contributor Author

PeterTh commented Jul 20, 2023

(Note: this is currently failing due to our CI rework; will only merge after all of that is resolved)

Copy link
Contributor

@fknorr fknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Also, libenvpp is 🔥.

test/runtime_tests.cc Outdated Show resolved Hide resolved
@PeterTh PeterTh changed the title Fix behaviour of fence in dry runs Fix behaviour of fence and horizons in dry runs Aug 9, 2023
Copy link
Member

@psalz psalz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good change!

src/scheduler.cc Show resolved Hide resolved
test/runtime_tests.cc Outdated Show resolved Hide resolved
test/runtime_tests.cc Outdated Show resolved Hide resolved
test/runtime_tests.cc Show resolved Hide resolved
test/runtime_tests.cc Outdated Show resolved Hide resolved
Also add a unit test and get rid of some utilities that are no longer
necessary.
@PeterTh PeterTh merged commit 069f502 into master Aug 14, 2023
@fknorr fknorr deleted the dry-fence-fix branch August 15, 2023 09:01
@fknorr fknorr added this to the 0.4.1 milestone Aug 15, 2023
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.

3 participants