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

Add support for MPI.IN_PLACE to Ensemble methods. #2913

Open
JHopeCollins opened this issue May 4, 2023 · 0 comments
Open

Add support for MPI.IN_PLACE to Ensemble methods. #2913

JHopeCollins opened this issue May 4, 2023 · 0 comments
Assignees

Comments

@JHopeCollins
Copy link
Contributor

Issue:
The Ensemble methods always assume that they are being passed a Function, even when the MPI function they are wrapping will accept MPI.IN_PLACE as one of the arguments (e.g. reduce). It would be useful to be able to do these operations in place where MPI supports it.

Solution:
The Ensemble would test the arguments to the appropriate methods to see if it's a Function or MPI.IN_PLACE, and handle each appropriately.

Alternatives:
Users reach in and use the Ensemble.ensemble_comm methods themselves when they want to use IN_PLACE, which would be error prone and annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant