Skip to content

Virtualize the contexts and backends rather than templating#104

Draft
Matthew-Whitlock wants to merge 9 commits intomainfrom
virtualize
Draft

Virtualize the contexts and backends rather than templating#104
Matthew-Whitlock wants to merge 9 commits intomainfrom
virtualize

Conversation

@Matthew-Whitlock
Copy link
Copy Markdown
Collaborator

@Matthew-Whitlock Matthew-Whitlock commented Oct 17, 2025

Questions:

  1. Should we allow making an UncoordinatedContext without passing an ID? It would default the ID to 0, and that would be fine as long as only 1 process is checkpointing or you have the checkpoint paths split up per process. It seems like a bit of a trap to allow? Maybe just detect conflicts and throw an exception? This doesn't seem all too important
  2. Any better way to allow more generic reset_impl function calls? Maybe a struct with all of the possible arguments for resetting various contexts, with flags to indicate that they were/weren't set? Or some slightly nicer version of that.

I renamed the Impl::Registration namespace, because you otherwise can't use the Registration class name when inside the Impl namespace (e.g. inside AutomaticCheckpoint). I am open to being yelled at about unnecessary refactoring and overly broad changes, though.

@Matthew-Whitlock Matthew-Whitlock marked this pull request as ready for review October 20, 2025 17:45
@Matthew-Whitlock Matthew-Whitlock marked this pull request as draft February 20, 2026 18:08
@Matthew-Whitlock
Copy link
Copy Markdown
Collaborator Author

This has been broken up into multiple PRs, leaving here just to ensure all changes make it in eventually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant