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

Another approach to fix the data race in PerThreadBoolIndicator #3139

Closed
wants to merge 1 commit into from

Conversation

jprotze
Copy link
Contributor

@jprotze jprotze commented Mar 6, 2024

This approach avoids some of the barriers introduced by the other PR.
But, more significantly it does not introduce the atomic counter for the instances of PerThreadPoolIndicator that don't use the collective logical operations.

@heplesser
Copy link
Contributor

@jprotze In the OpenMP only (no MPI) build of NEST this variant fails several of our tests. With MPI and OpenMP, tests run into deadlocks under Linux and macOS, so I am afraid something is not quite right yet.

@jprotze
Copy link
Contributor Author

jprotze commented Mar 6, 2024

Would you consider this alternative approach at all?
Then I would look into the issue and what is going wrong.
Otherwise, I would just drop this PR. The other one is ready to merge, I think.

@heplesser
Copy link
Contributor

Would you consider this alternative approach at all? Then I would look into the issue and what is going wrong. Otherwise, I would just drop this PR. The other one is ready to merge, I think.

@jprotze This approach looks quite a bit simpler than the one based on the PerThreadBoolIndicator, so if you can make it work and it did not affect performance, I would actually prefer it. As we would like to fix this bug within a few days and #3120 does so an passes, I would consider merging that first and then replace it with this approach later on when it works.

@heplesser
Copy link
Contributor

@jprotze Since #3120 is merged now, I will close this PR for now to avoid confusion. Feel free to re-open it later.

@heplesser heplesser closed this Mar 13, 2024
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.

2 participants