Skip to content

VelocFileBackend

nphtan edited this page May 19, 2021 · 1 revision

KokkosResilience::VeloCFileBackend

File based backend powered by VeloC

Header File: VelocBackend.hpp

Synopsis

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
};

Public Members

Constructor

  • VeloCFileBackend( MPIContext< VeloCFileBackend > &ctx, MPI_Comm mpi_comm, const std::string &veloc_config);
    Construct the VeloCFileBackend with the supplied MPIContext, communicator, and configuration path.

Functions

  • 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 most version 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 number version.

  • void register_hashes( const std::vector< std::unique_ptr< Kokkos::ViewHolderBase > > & )

    No-op