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

Perform MPI_ALLREDUCE operations in place when possible #287

Open
mathrack opened this issue Sep 4, 2024 · 0 comments
Open

Perform MPI_ALLREDUCE operations in place when possible #287

mathrack opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mathrack
Copy link
Contributor

mathrack commented Sep 4, 2024

Several all-to-all MPI reductions are using a temporary variable :

call MPI_ALLREDUCE(temp1,enst,1,real_type,MPI_SUM,MPI_COMM_WORLD,code)

However, MPI reductions can be performed in place to avoid temporary variables :

call MPI_ALLREDUCE(MPI_IN_PLACE,qm,1,real_type,MPI_SUM,MPI_COMM_WORLD,code)

It would be a nice improvement to perform MPI all-to-all reductions in place when possible and to remove temporary variables, especially when their name is not clear (temp1, temp2, ...)

@mathrack mathrack added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant