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

Asychronous Communication #6

Closed
3 tasks done
niklas-uhl opened this issue Dec 2, 2021 · 2 comments
Closed
3 tasks done

Asychronous Communication #6

niklas-uhl opened this issue Dec 2, 2021 · 2 comments
Assignees
Milestone

Comments

@niklas-uhl
Copy link
Member

niklas-uhl commented Dec 2, 2021

For the current milestone we focus only on point to point communication

Non-blocking/asynchronous collectives are part of #549

@niklas-uhl
Copy link
Member Author

Replicate the "classic" polling-based approach with a useful interface

  • should use same interface as synchronous communication (maybe provide send_sync and send_async)
  • wait() with timeouts
  • use std::promise and std::future

@niklas-uhl
Copy link
Member Author

niklas-uhl commented Jan 2, 2023

I think we want two APIs for working with asynchronous communication:

  • request based interface which just returns request objects, which expose wait(), test() etc.
  • a future-based interface which allows for chaining. I.e. a call returns a future, when can then transform the result using then() and pass a transformation lambda. The then()-transformations are chained and lazy-evaluated when wait() is called on the future.
    • we can draw inspiration from what UPC++ does (see here and here )
    • This would also be another USP for KaMPIng, MPL only has plain requests, the rwth-mpi implementation only provides rudimentary future support

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

No branches or pull requests

2 participants