move fetch from init to have_restart #480
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This moves the fetch operation from
SCR_Init
toSCR_Have_restart
. Datasets are still rebuilt duringSCR_Init
, and flushed ifSCR_GLOBAL_RESTART
is set.This allows a user to specify the checkpoint that SCR should load by calling
SCR_Current
beforeSCR_Have_restart
. Currently, one must specify the checkpoint name before callingSCR_Init
, but some applications would prefer to callSCR_Init
before they have identified the name of the checkpoint they want to load. In particular, for applications that scan the parallel file system for checkpoints, this enables SCR to rebuild and flush any cached checkpoints duringSCR_Init
to make those checkpoints visible to the scan. The application can then callSCR_Current
to provide the name and before callingSCR_Have_restart
.Resolves #475
This PR also enables a user to call the Restart API after having written a dataset with the Output API. This is useful for some applications that test checkpoint/restart by writing a checkpoint and then immediately reading it back to restart.
Resolves #392
This PR also modifies the behavior of
SCR_FETCH=0
. The previous behavior disabled SCR from loading a checkpoint from the prefix directory. Now this setting causes SCR to switch into bypass mode during restart so thatSCR_Route_file
directs the application to read its files directly from the prefix directory.