3 #include "caffe2/core/common.h" 6 #define CAFFE2_SUPPORTS_SIGNAL_HANDLER 7 #elif defined(__linux__) && !defined(CAFFE2_DISABLE_SIGNAL_HANDLERS) 8 #define CAFFE2_SUPPORTS_FATAL_SIGNAL_HANDLERS 9 #define CAFFE2_SUPPORTS_SIGNAL_HANDLER 23 Action SIGHUP_action);
26 Action CheckForSignals();
31 Action SIGINT_action_;
32 Action SIGHUP_action_;
33 unsigned long my_sigint_count_;
34 unsigned long my_sighup_count_;
37 #if defined(CAFFE2_SUPPORTS_FATAL_SIGNAL_HANDLERS) 41 CAFFE2_API
void setPrintStackTracesOnFatalSignal(
bool print);
42 CAFFE2_API
bool printStackTracesOnFatalSignal();
43 #endif // defined(CAFFE2_SUPPORTS_SIGNAL_HANDLER)
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...