Skip to content

Commit

Permalink
Fix abstractstager virtual destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Jan 9, 2025
1 parent 6fc66d0 commit 8773200
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions include/hermes/data_stager/abstract_stager.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,20 @@ class AbstractStager {
std::string params_;

AbstractStager() = default;
~AbstractStager() = default;
virtual ~AbstractStager() = default;

virtual void RegisterStager(const hipc::MemContext &mctx,
const std::string &tag_name,
const std::string &params) = 0;
virtual void StageIn(const hipc::MemContext &mctx,
hermes::Client &client,
const TagId &tag_id,
const std::string &blob_name,
virtual void StageIn(const hipc::MemContext &mctx, hermes::Client &client,
const TagId &tag_id, const std::string &blob_name,
float score) = 0;
virtual void StageOut(const hipc::MemContext &mctx,
hermes::Client &client,
const TagId &tag_id,
const std::string &blob_name,
hipc::Pointer &data_p,
size_t data_size) = 0;
virtual void UpdateSize(const hipc::MemContext &mctx,
hermes::Client &client,
const TagId &tag_id,
const std::string &blob_name,
size_t blob_off,
size_t data_size) = 0;
virtual void StageOut(const hipc::MemContext &mctx, hermes::Client &client,
const TagId &tag_id, const std::string &blob_name,
hipc::Pointer &data_p, size_t data_size) = 0;
virtual void UpdateSize(const hipc::MemContext &mctx, hermes::Client &client,
const TagId &tag_id, const std::string &blob_name,
size_t blob_off, size_t data_size) = 0;
};

} // namespace hermes
Expand Down

0 comments on commit 8773200

Please sign in to comment.