Closed jbojar closed 3 years ago
+1, that's a nice solution when you start training with a large amount of iterations and can't afford storing multiple checkpoints. Using a signal you can checkpoint whenever you wish
Interesting concept. Is this likely to be portable? I have next to 0 experience programming C for Windows, but there's some talk of making GlOvE run on Windows.
This modification allows to request saving a checkpoint at the end of current iteration by sending SIGUSR1 signal to glove process:
kill -s SIGUSR1 <PID>
.Implementation starts a dedicated signal handling thread, which waits for SIGUSR1 signal using
sigwait(...)
function.