Restarting belt automatically: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 July 2024

  • curprev 10:5110:51, 3 July 2024Vardan talk contribs 692 bytes +12 No edit summary
  • curprev 10:4710:47, 3 July 2024Vardan talk contribs 680 bytes +680 Created page with "Add the following script to your submit script to automatically restart belt from the last output file. latest=$(ls -l data | grep -o "rho\.[0-9]*\.dbl" | grep -oE "[0-9]*" | sort -g -r | head -n 1) timeout 95h mpirun -np 864 ./belt -restart $latest if $? == 124 ; then sbatch submit fi In the above example, the code will be terminated after 95 hours and the submit file called "submit" will be resubmitted. Note that you need to have SBATCH time of at least 95..."