When using, is mpirunit possible to catch signals (for example, SIGINT generated with ^C) in running code?
For example, I am running parallel python code. I can except KeyboardInterruptcatch these errors on startup python blah.pyby myself, but I can't do it mpirun -np 1 python blah.py.
Does anyone have a suggestion? Even finding how to catch signals in a compiled C or C ++ program would be a useful start.
If I send a signal to spawned Python processes, they can handle the signals correctly; however, signals sent to the parent process orterun(i.e. due to excess of time on the wall in the cluster or pressing the -C control key in the terminal) will immediately destroy everything.
source
share