Skip to content

Conversation

@ikbuibui
Copy link
Contributor

@ikbuibui ikbuibui commented Sep 29, 2025

Moves checkpointing simulation control in its own class
Checkpoint class now has a compile time toggle to disable checkpoint/restart functionality (fixes #5480)
Simplified restart state management and changed from using bools to an enum tracking state

}

// Checkpoints are expected to be sorted chronologically.
bool const stepFound = std::binary_search(checkpoints.cbegin(), checkpoints.cend(), restartStep);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have this logic here

@ikbuibui ikbuibui force-pushed the disable_checkpointing branch from 5b85557 to 24a14ee Compare October 2, 2025 10:49
@ikbuibui ikbuibui added the component: core in PIConGPU (core application) label Oct 2, 2025
Moves checkpointing simulation control in its own class
Checkpoint class now has a compile time toggle to disable
checkpoint/restart functionality
Simplified restart state management and changed from using bools to an
enum tracking state
@ikbuibui ikbuibui force-pushed the disable_checkpointing branch from 24a14ee to 6bbde4f Compare October 7, 2025 08:15
@ikbuibui ikbuibui changed the title Disable checkpointing Disable checkpointing properly if openPMD is missing Oct 28, 2025
@ikbuibui ikbuibui marked this pull request as ready for review October 30, 2025 07:27
Copy link
Contributor

@chillenzer chillenzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial review.

Copy link
Contributor

@chillenzer chillenzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me otherwise. Please do the marked renamings.

@PrometheusPi
Copy link
Member

@ikbuibui what is the status of this PR?

@ikbuibui
Copy link
Contributor Author

I still need to address the requested changes, will happen sometime this week.

Specialized the Checkpointing class template for disabled, i.e. false
type
Did some renamings
Unified the enum to string mapping
@ikbuibui ikbuibui force-pushed the disable_checkpointing branch 2 times, most recently from 09afb1a to d456273 Compare November 25, 2025 09:32
@ikbuibui ikbuibui force-pushed the disable_checkpointing branch from d456273 to b0cf28b Compare November 25, 2025 12:48
@ikbuibui ikbuibui force-pushed the disable_checkpointing branch from b0cf28b to 6415776 Compare November 25, 2025 16:04
Copy link
Contributor

@chillenzer chillenzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bearing with me for so long. We finally made it!

@chillenzer chillenzer merged commit 3a84b8f into ComputationalRadiationPhysics:dev Nov 26, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: core in PIConGPU (core application)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

checkpoint flags still exist without openPMD

3 participants