Skip to content

Commit

Permalink
#1009: memory footprinting: remove unnnecessary includes
Browse files Browse the repository at this point in the history
Remove unnecessary checkpoint headers and enabe_ifs (virtual serialization
leftovers).
  • Loading branch information
cz4rs committed Nov 21, 2020
1 parent 505a057 commit 171083d
Show file tree
Hide file tree
Showing 30 changed files with 24 additions and 203 deletions.
9 changes: 1 addition & 8 deletions src/vt/collective/collective_alg.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#if !defined INCLUDED_COLLECTIVE_COLLECTIVE_ALG_H
#define INCLUDED_COLLECTIVE_COLLECTIVE_ALG_H

#include <checkpoint/checkpoint.h>

#include "vt/config.h"
#include "vt/collective/tree/tree.h"
#include "vt/activefn/activefn.h"
Expand Down Expand Up @@ -146,12 +144,7 @@ struct CollectiveAlg :
*/
bool isDeallocated(bool is_user_tag, TagType scope_bits) const;

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | next_system_scope_
| user_scope_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/configs/arguments/args.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#if !defined INCLUDED_VT_CONFIGS_ARGUMENTS_ARGS_H
#define INCLUDED_VT_CONFIGS_ARGUMENTS_ARGS_H

#include <checkpoint/checkpoint.h>

#include "vt/configs/arguments/app_config.h"
#include "vt/runtime/component/component.h"

Expand Down Expand Up @@ -81,12 +79,7 @@ struct ArgConfig : runtime::component::Component<ArgConfig> {

std::string name() override { return "ArgConfig"; }

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | config_
| parsed_;
Expand Down
9 changes: 1 addition & 8 deletions src/vt/context/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
#include <memory>
#include <mpi.h>

#include <checkpoint/checkpoint.h>

#include "vt/config.h"
#include "vt/runtime/component/component_pack.h"
#include "vt/context/context_attorney_fwd.h"
Expand Down Expand Up @@ -145,12 +143,7 @@ struct Context : runtime::component::Component<Context> {

std::string name() override { return "Context"; }

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | thisNode_
| numNodes_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/event/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
#include "vt/event/event_holder.h"
#include "vt/event/event_msgs.h"

#include <checkpoint/checkpoint.h>

#include <memory>
#include <vector>
#include <list>
Expand Down Expand Up @@ -189,12 +187,7 @@ struct AsyncEvent : runtime::component::PollableComponent<AsyncEvent> {

std::string name() override { return "AsyncEvent"; }

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | cur_event_
| event_container_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/group/group_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
#include "vt/collective/collective_scope.h"
#include "vt/runtime/component/component_pack.h"

#include <checkpoint/checkpoint.h>

#include <memory>
#include <unordered_map>
#include <cstdlib>
Expand Down Expand Up @@ -373,12 +371,7 @@ struct GroupManager : runtime::component::Component<GroupManager> {
*/
RemoteOperationIDType getNextOpID();

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | next_group_id_
| next_collective_group_id_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/messaging/active.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
#include <memory>
#include <mpi.h>

#include <checkpoint/checkpoint.h>

#include "vt/config.h"
#include "vt/activefn/activefn.h"
#include "vt/messaging/active.fwd.h"
Expand Down Expand Up @@ -1678,12 +1676,7 @@ struct ActiveMessenger : runtime::component::PollableComponent<ActiveMessenger>
send_listen_.clear();
}

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | current_handler_context_
| current_node_context_
Expand Down
8 changes: 1 addition & 7 deletions src/vt/objgroup/manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
#include "vt/messaging/message/smart_ptr.h"
#include "vt/messaging/pending_send.h"

#include <checkpoint/checkpoint.h>

#include <memory>
#include <functional>
#include <unordered_map>
Expand Down Expand Up @@ -366,11 +364,7 @@ struct ObjGroupManager : runtime::component::Component<ObjGroupManager> {
);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
typename SerializerT>
void serialize(SerializerT& s) {
s | cur_obj_id_
| dispatch_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/phase/phase_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
#include "vt/phase/phase_hook_enum.h"
#include "vt/phase/phase_hook_id.h"

#include <checkpoint/checkpoint.h>

#include <unordered_map>
#include <map>

Expand Down Expand Up @@ -182,12 +180,7 @@ struct PhaseManager : runtime::component::Component<PhaseManager> {
*/
void runHooksManual(PhaseHook type);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | cur_phase_
| proxy_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/pool/pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
#if !defined INCLUDED_POOL_POOL_H
#define INCLUDED_POOL_POOL_H

#include <checkpoint/checkpoint.h>

#include "vt/config.h"
#include "vt/runtime/component/component_pack.h"
#include "vt/pool/static_sized/memory_pool_equal.h"
Expand Down Expand Up @@ -164,12 +162,7 @@ struct Pool : runtime::component::Component<Pool> {
*/
void finalize() override;

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | small_msg
| medium_msg
Expand Down
9 changes: 1 addition & 8 deletions src/vt/rdma/rdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@

#include "vt/collective/collective_scope.h"

#include <checkpoint/checkpoint.h>

#include <unordered_map>
#include <cassert>

Expand Down Expand Up @@ -903,12 +901,7 @@ struct RDMAManager : runtime::component::Component<RDMAManager> {
static void remoteChannel(ChannelMessage* msg);
static void getInfoChannel(GetInfoChannel* msg);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | cur_rdma_handler_
| cur_ident_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/rdmahandle/manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
#include "vt/runtime/component/component_pack.h"
#include "vt/collective/collective_scope.h"

#include <checkpoint/checkpoint.h>

namespace vt { namespace rdma {

/** \file */
Expand Down Expand Up @@ -231,12 +229,7 @@ struct Manager : runtime::component::Component<Manager> {
public:
static std::unique_ptr<Manager> construct();

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | cur_handle_obj_group_
| cur_handle_collection_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/registry/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
#include <unordered_map>
#include <cassert>

#include <checkpoint/checkpoint.h>

#include "vt/config.h"
#include "vt/activefn/activefn.h"
#include "vt/handler/handler.h"
Expand Down Expand Up @@ -146,12 +144,7 @@ struct Registry : runtime::component::Component<Registry> {
*/
ActiveClosureFnType getHandlerNoTag(HandlerType const han);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | registered_
| tagged_registered_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/scheduler/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
#include "vt/timing/timing.h"
#include "vt/runtime/component/component_pack.h"

#include <checkpoint/checkpoint.h>

#include <cassert>
#include <vector>
#include <list>
Expand Down Expand Up @@ -266,12 +264,7 @@ struct Scheduler : runtime::component::Component<Scheduler> {
*/
bool isIdleMinusTerm() const { return work_queue_.size() == num_term_msgs_; }

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | work_queue_
| has_executed_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/termination/termination.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
#include "vt/termination/epoch_tags.h"
#include "vt/runtime/component/component_pack.h"

#include <checkpoint/checkpoint.h>

#include <cstdint>
#include <unordered_map>
#include <unordered_set>
Expand Down Expand Up @@ -605,12 +603,7 @@ struct TerminationDetector :
std::unordered_set<EpochType> const& getEpochReadySet() { return epoch_ready_; }
std::unordered_set<EpochType> const& getEpochWaitSet() { return epoch_wait_status_; }

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | any_epoch_state_
| hang_
Expand Down
9 changes: 1 addition & 8 deletions src/vt/timetrigger/time_trigger_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
#include "vt/timetrigger/trigger.h"
#include "vt/runtime/component/component.h"

#include <checkpoint/checkpoint.h>

#include <chrono>
#include <queue>
#include <unordered_set>
Expand Down Expand Up @@ -108,12 +106,7 @@ struct TimeTriggerManager
*/
void triggerReady(TimeType cur_time);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | queue_
| next_trigger_id_
Expand Down
2 changes: 0 additions & 2 deletions src/vt/topos/location/location.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
#include "vt/activefn/activefn.h"
#include "vt/vrt/vrt_common.h"

#include <checkpoint/checkpoint.h>

#include <cstdint>
#include <memory>
#include <vector>
Expand Down
9 changes: 1 addition & 8 deletions src/vt/topos/location/manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
#include "vt/vrt/collection/proxy.h"
#include "vt/runtime/component/component_pack.h"

#include <checkpoint/checkpoint.h>

#include <unordered_map>
#include <functional>

Expand Down Expand Up @@ -171,12 +169,7 @@ struct LocationManager : runtime::component::Component<LocationManager> {
LocInstType const inst, ActionLocInstType<LocType> action
);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | collectionLoc
| cur_loc_inst
Expand Down
9 changes: 1 addition & 8 deletions src/vt/trace/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@

#include "vt/timing/timing.h"

#include <checkpoint/checkpoint.h>

#include <cassert>
#include <cstdint>
#include <functional>
Expand Down Expand Up @@ -507,12 +505,7 @@ struct Trace : runtime::component::Component<Trace> {

friend void insertNewUserEvent(UserEventIDType event, std::string const& name);

template <
typename SerializerT,
typename = std::enable_if_t<
std::is_same<SerializerT, checkpoint::Footprinter>::value
>
>
template <typename SerializerT>
void serialize(SerializerT& s) {
s | incremental_flush_mode
| traces_
Expand Down
Loading

0 comments on commit 171083d

Please sign in to comment.