-
Notifications
You must be signed in to change notification settings - Fork 2
VelocFileBackend
nphtan edited this page May 19, 2021
·
1 revision
File based backend powered by VeloC
Header File: VelocBackend.hpp
class VeloCFileBackend
{
public:
VeloCFileBackend( MPIContext< VeloCFileBackend > &ctx, MPI_Comm mpi_comm, const std::string &veloc_config);
~VeloCFileBackend();
void checkpoint( const std::string &label, int version,
const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > &views );
bool restart_available( const std::string &label, int version );
int latest_version (const std::string &label) const noexcept;
void restart( const std::string &label, int version,
const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > &views );
void register_hashes( const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > & ) {} // Do nothing
};
-
Construct the
VeloCFileBackend( MPIContext< VeloCFileBackend > &ctx, MPI_Comm mpi_comm, const std::string &veloc_config);
VeloCFileBackend
with the suppliedMPIContext
, communicator, and configuration path.
-
void checkpoint( const std::string &label, int version, const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > &views );
Create checkpoint with the specified Views.
-
bool restart_available( const std::string &label, int version );
Check if a restart
label
with version number at mostversion
is available. -
int latest_version(const std::string &label) const noexcept;
Get the latest version of the specified restart.
-
void restart( const std::string &label, int version, const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > &views );
Restart the specified Views from the restart
label
with version numberversion
. -
void register_hashes( const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > & )
No-op