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

Missing all_reduce in place operation #12

Open
Wentzell opened this issue Jun 5, 2023 · 1 comment
Open

Missing all_reduce in place operation #12

Wentzell opened this issue Jun 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Wentzell
Copy link
Member

Wentzell commented Jun 5, 2023

There is currently no all_reduce in-place operation implemented.

This would be very useful to add to avoid large copies.

@Wentzell Wentzell added the enhancement New feature or request label Jun 5, 2023
@Wentzell Wentzell changed the title Feature request Missing all_reduce in place operation Jun 5, 2023
@hmenke
Copy link
Member

hmenke commented Oct 28, 2023

mpi/c++/mpi/mpi.hpp

Lines 250 to 252 in a36a0b5

template <typename T> [[gnu::always_inline]] inline void all_reduce_in_place(T &&x, communicator c = {}, MPI_Op op = MPI_SUM) {
reduce_in_place(std::forward<T>(x), c, 0, true, op);
}

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

2 participants