charmplusplus / charm4py

Parallel Programming with Python and Charm++
https://charm4py.readthedocs.io
Apache License 2.0
289 stars 21 forks source link

Make LocalFuture Available to User Code #226

Open ZwFink opened 2 years ago

ZwFink commented 2 years ago

LocalFutures are lightweight future objects used internally within the runtime system for signaling within a PE. I'm working on an application that uses futures that are guaranteed to send results within the same PE. Because LocalFutures avoid communication, they should be made available to user code, with documentation making it clear that:

  1. They cannot be used across PEs.
  2. Values sent through a local future are passed by reference.