-
Notifications
You must be signed in to change notification settings - Fork 0
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
MPI types with runtime size #301
Comments
As we discussed during lunch break, the problem here is that std::vector<ValueType> kamping_top_k(std::vector<ValueType> const& local_top_k, Communicator const& comm) {
using namespace kamping;
auto result = comm.reduce(
send_buf(contiguous_view(local_top_k, local_top_k.size())),
op(merge<ValueType>, commutative))
.extract_recv_buffer();
} where template<typename ValueType>
ContiguousViewElement<ValueType> merge(ContiguousViewElement<ValueType> const& lhs, ContiguousViewElement<ValueType> const& rhs); |
I think we also talked about this being chainable? I.e. putting this into another view. The template parameter to |
Yes, I just wanted to give a simplified example to show the basic idea. |
I just built a quick example of something that's possible with the C interface but (afaik) not with kamping. (Pretty much the same as the top k example by @niklas-uhl )
The text was updated successfully, but these errors were encountered: