8 #ifndef ABLASTR_SIGNAL_HANDLING_H_ 9 #define ABLASTR_SIGNAL_HANDLING_H_ 11 #include <AMReX_Config.H> 13 #if defined(AMREX_USE_MPI) 73 #if defined(AMREX_USE_MPI) 91 #endif // ABLASTR_SIGNAL_HANDLING_H_ str
Definition: run_alltests_1node.py:72
static bool signal_conf_requests[SIGNAL_REQUESTS_SIZE][NUM_SIGNALS]
Whether configuration requests the code take a particular action on a particular signal.
Definition: SignalHandling.H:50
Cleanly stop execution, as if the simulation reached its configured end.
Definition: SignalHandling.H:43
static std::atomic< bool > signal_received_flags[NUM_SIGNALS]
On process 0, whether a given signal has been received since the last check.
Definition: SignalHandling.H:71
static bool TestAndResetActionRequestFlag(int action_to_test)
Check whether a given action has been requested, and reset the associated flag.
Definition: SignalHandling.cpp:196
static void SignalSetFlag(int signal_number)
Signal handler to set flags on process 0 (other processes ignore configured signals) ...
Definition: SignalHandling.cpp:204
Definition: SignalHandling.H:46
Produce a checkpoint.
Definition: SignalHandling.H:45
static bool m_any_signal_action_active
Is any signal handling action configured in signal_conf_requests ?
Definition: SignalHandling.H:68
static void CheckSignals()
Check and clear signal flags and asynchronously broadcast them from process 0.
Definition: SignalHandling.cpp:145
signal_action_requested_labels
Labels for indexed positions in signal_actions_requests.
Definition: SignalHandling.H:41
static void InitSignalHandling()
Set up signal handlers based on input configuration provided in signal_conf_requests_* ...
Definition: SignalHandling.cpp:115
static void WaitSignals()
Complete the asynchronous broadcast of signal flags.
Definition: SignalHandling.cpp:183
static bool signal_actions_requested[SIGNAL_REQUESTS_SIZE]
Definition: SignalHandling.H:83
Signal handling.
Definition: SignalHandling.H:34
static constexpr int NUM_SIGNALS
The range of signal values to accept.
Definition: SignalHandling.H:38
static int parseSignalNameToNumber(const std::string &str)
Take a string and convert it to a corresponding signal number if possible.
Definition: SignalHandling.cpp:33
static MPI_Request signal_mpi_ibcast_request
MPI requests for the asynchronous broadcasts of the signal-requested actions.
Definition: SignalHandling.H:75