Skip to content

Commit

Permalink
#1009: memory footprinting: use | operator for MPI types
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 19, 2020
1 parent 94d7528 commit dcbbd26
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
5 changes: 2 additions & 3 deletions src/vt/context/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ struct Context : runtime::component::Component<Context> {
void serialize(SerializerT& s) {
s | thisNode_
| numNodes_
| numWorkers_;

s.countBytes(communicator_);
| numWorkers_
| communicator_;
}

protected:
Expand Down
5 changes: 2 additions & 3 deletions src/vt/group/group_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,8 @@ struct GroupManager : runtime::component::Component<GroupManager> {
| cur_collective_id_
| continuation_actions_
| cleanup_actions_
| collective_scope_;

s.countBytes(default_comm_);
| collective_scope_
| default_comm_;
}

private:
Expand Down
5 changes: 2 additions & 3 deletions src/vt/messaging/active.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ struct InProgressDataIRecv : InProgressBase {
| dealloc_user_buf
| next
| priority
| cur;

s.countBytes(reqs);
| cur
| reqs;
}

void* user_buf = nullptr;
Expand Down
9 changes: 4 additions & 5 deletions src/vt/rdma/channel/rdma_channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ struct Channel {
| num_bytes_
| ptr_
| op_type_
| channel_group_tag_;

s.countBytes(window_);
s.countBytes(channel_group_);
s.countBytes(channel_comm_);
| channel_group_tag_
| window_
| channel_group_
| channel_comm_;
}

private:
Expand Down
7 changes: 3 additions & 4 deletions src/vt/rdmahandle/holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,9 @@ struct Holder {
| ready_
| mpi2_
| uniform_size_
| handle_;

s.countBytes(data_window_);
s.countBytes(control_window_);
| handle_
| data_window_
| control_window_;
}

private:
Expand Down

0 comments on commit dcbbd26

Please sign in to comment.