Skip to content

Commit

Permalink
#1009 add serialize method for theObjGroup component
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Sep 17, 2020
1 parent 6322698 commit 35471d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/vt/objgroup/manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,16 @@ struct ObjGroupManager : runtime::component::Component<ObjGroupManager> {
MsgSharedPtr<ShortMessage> msg, HandlerType han, EpochType ep
);

template <typename Serializer>
void serialize(Serializer& s) {
s | cur_obj_id_
// | dispatch_
// | objs_
// | obj_to_proxy_
// | pending_
| derived_to_bases_;
}

private:
/**
* \internal \brief Untyped system call to make a new collective objgroup
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/runtime/test_memory_footprint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,8 @@ TEST_F(TestMemoryFootprinting, test_collective_alg) {
printMemoryFootprint(theCollective());
}

TEST_F(TestMemoryFootprinting, test_obj_group_manager) {
printMemoryFootprint(theObjGroup());
}

}}} /* end namespace vt::tests::unit */

0 comments on commit 35471d6

Please sign in to comment.