I want to run a program that runs and creates a checkpoint file. Then I want to run several variant configurations that all start from that checkpoint.
For example, if I run:
sbatch -n 1 -t 12:00:00 --mem=16g program.sh
And program.sh
looks like this:
#!/bin/sh
./set_checkpoint
sbatch -n 1 -t 12:00:00 --mem=16g cpt_restore_config1.sh
sbatch -n 1 -t 12:00:00 --mem=16g cpt_restore_config2.sh
sbatch -n 1 -t 12:00:00 --mem=16g cpt_restore_config3.sh
sbatch -n 1 -t 12:00:00 --mem=16g cpt_restore_config4.sh
Does this implement the desired effect?