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

ParallelExecutor no longer needs std::ref #5144

Merged
merged 5 commits into from
Aug 23, 2024

Conversation

ye-luo
Copy link
Contributor

@ye-luo ye-luo commented Aug 23, 2024

Proposed changes

The requirement came from the experimental ParallelExecutor<Executor::STD_THREADS> implementation. After fixing it, ParallelExecutor doesn't require std::ref on its arguments in both OpenMP and std::thread implementations.

What type(s) of changes does this code introduce?

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

laptop

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'
  • Yes. Code added or changed in the PR has been clang-formatted

@ye-luo ye-luo requested a review from PDoakORNL August 23, 2024 14:10
Copy link
Contributor

@PDoakORNL PDoakORNL left a comment

Choose a reason for hiding this comment

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

LGTM

@prckent
Copy link
Contributor

prckent commented Aug 23, 2024

Test this please

@prckent prckent enabled auto-merge August 23, 2024 18:42
@prckent prckent merged commit 8e075b4 into QMCPACK:develop Aug 23, 2024
38 of 39 checks passed
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