-
Notifications
You must be signed in to change notification settings - Fork 189
Add per-rank disk checkpointing for adjoint tape #4891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JHopeCollins
merged 36 commits into
firedrakeproject:main
from
sghelichkhani:sghelichkhani/per-rank-disk-checkpointing
Mar 5, 2026
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
49c5e15
Add per-rank disk checkpointing for adjoint tape
sghelichkhani f6b6704
Generalize per-rank checkpointing to checkpoint_comm API
sghelichkhani c231fb9
Address review: deprecation warning, isinstance check, sub-comm tests
sghelichkhani f3335bc
Reuse _generate_function_space_name for checkpoint_comm naming
sghelichkhani cd6678b
Merge branch 'firedrakeproject:main' into sghelichkhani/per-rank-disk…
sghelichkhani 6b8ba4a
Fix non-deterministic multi-mesh test failures
sghelichkhani c97e4be
Merge branch 'firedrakeproject:main' into sghelichkhani/per-rank-disk…
sghelichkhani 3d38613
Merge branch 'main' into sghelichkhani/per-rank-disk-checkpointing
sghelichkhani 312ad59
Use `Index_CreateWithArray` to build mesh spatial index (#4865)
leo-collins ad56c87
Avoid creating a function space when calculating bounding box coordin…
leo-collins 125ead2
Extract TemporaryFunctionCheckpointFile, address review feedback
sghelichkhani 7bb3ab3
Remove dead checkpoint_comm attribute from CheckPointFileReference
sghelichkhani 5b39e8b
Clean up test temp directories to avoid leaks in CI
sghelichkhani 78135e4
Warn when checkpoint_comm is used without checkpoint_dir
sghelichkhani 0ec581f
Add taylor_test to multi-mesh test, clarify per-rank tmpdir comments
sghelichkhani 86afb94
Document MeshSequenceGeometry unwrapping in _generate_function_space_…
sghelichkhani 1f45f04
Merge branch 'main' into sghelichkhani/per-rank-disk-checkpointing
sghelichkhani ee88af0
linting
sghelichkhani 88e0b78
Address review feedback: cleanup logic, test fixtures, docstrings
sghelichkhani c6a58a7
Use taylor_test instead of allclose in multi-mesh tests
sghelichkhani 0bfd1b3
Add boundary conditions to multi-mesh test solves
sghelichkhani 1b43b35
Merge branch 'main' into sghelichkhani/per-rank-disk-checkpointing
sghelichkhani 0568984
Refactor TemporaryFunctionCheckpointFile per review feedback
sghelichkhani a71927e
Remove unused tempfile import from checkpointing.py
sghelichkhani 3da0cf6
Resolve cleanup comm in CheckPointFileReference.__init__ rather than …
sghelichkhani bccf166
Use TemporaryDirectory(delete=cleanup) for local checkpoint dir
sghelichkhani 2c1e17a
Single unconditional bcast at each collective site
sghelichkhani acb5e71
Improve new_checkpoint_file deprecation warning with migration guidance
sghelichkhani 15bd03f
Consistent _checkpoint suffix on all _save/_restore method names
sghelichkhani 5056677
Factor rename/recount into restore(), leaf methods return plain Function
sghelichkhani 2e3552a
Match CheckpointFile signature with name=None, idx=None defaults
sghelichkhani c120dfd
Use createWithArray in save_function to avoid unnecessary allocation
sghelichkhani 0fd0e4b
Apply suggestions from code review
sghelichkhani b2e63d6
Merge branch 'main' into sghelichkhani/per-rank-disk-checkpointing
sghelichkhani f37a152
Merge branch 'sghelichkhani/per-rank-disk-checkpointing' of github.co…
sghelichkhani ecab97f
Fix CheckPointFileReference missing comm attribute
sghelichkhani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.