What I want to achieve is something like:
- root process listens to children process
-
children will listen to root for stop notification
- children starts doing work
- when 1st child completes, notify root
-
root then notifies all processes to stop
How can I implement something like this in (Open)MPI/C++?
Listen will be something similar to IRecv? But how do I cancel those IRecv later?