mpi::monitor
#include <mpi.hpp>
class monitor
Contructed on top on a mpi communicator, this class monitors and syncronizes failure states of nodes, due to e.g. exceptions.
- Usage :
monitor M{comm};
on a node when failure occurs : request_emergency_stop.
on all nodes : emergency_occured -> bool tells where a node a requested an emergency stop
finalize_communications() cleans the monitor object and returns a bool : true iif computation finished normally (no emergency stop).