Skip to content
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

Add a ContextBase pointer member to class VeloCFileBackend. #52

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/resilience/veloc/VelocBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ namespace KokkosResilience
// No-op, don't do anything
}

VeloCFileBackend::VeloCFileBackend(MPIContext<VeloCFileBackend> &,
VeloCFileBackend::VeloCFileBackend(MPIContext<VeloCFileBackend> &ctx,
MPI_Comm mpi_comm,
const std::string &veloc_config) {
VELOC_SAFE_CALL( VELOC_Init( mpi_comm, veloc_config.c_str()));
const std::string &veloc_config)
: m_context(&ctx) {
VELOC_SAFE_CALL(VELOC_Init(mpi_comm, veloc_config.c_str()));
}

VeloCFileBackend::~VeloCFileBackend()
Expand Down
6 changes: 5 additions & 1 deletion src/resilience/veloc/VelocBackend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ namespace KokkosResilience
void restart( const std::string &label, int version,
const std::vector< KokkosResilience::ViewHolder > &views );

void register_hashes( const std::vector< KokkosResilience::ViewHolder > & ) {} // Do nothing
void register_hashes(const std::vector<KokkosResilience::ViewHolder> &) {
} // Do nothing

private:
ContextBase *m_context;
};
}

Expand Down