Checkpoints: check if checkpoint files exist before alerting
When restarting at a previous checkpoint, eg.
palmed [...] --checkpoint INIT
palmed
will warn about checkpoint files deletion:
[palmed] WARNING: the following directories will be DELETED!
checkpoints/10_instruction_ipc
checkpoints/20_quadra_sparse_benchmarks
checkpoints/30_quadra_dense_benchmarks
checkpoints/40_high_ipc_classes
checkpoints/60_kernel_benchmarks
checkpoints/70_saturating_benchs_list
checkpoints/80_saturating_benchs_applied
checkpoints/90_saturated_benchs_applied_reduced
Are you sure (Y/N)?
The message will always be the same, regardless of whether checkpoints/90_saturated_benchs_applied_reduced
is actually present; and thus regardless of whether such data will be actually lost. This is misleading.
It would be nice to warn only about the steps that will be actually lost, so that the user really knows what they're about to delete, and what recomputation time they can expect to reach the same computation step again.