Skip to content

Commit

Permalink
#1111: active: improve spacing and comments for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Nov 13, 2020
1 parent 4003573 commit cd98980
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vt/messaging/active.cc
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,16 @@ EventType ActiveMessenger::sendMsgMPI(
auto tag = allocateNewTag();
auto this_node = theContext()->getNode();

// Send the actual data in multiple chunks
PtrLenPairType tup = std::make_tuple(untyped_msg, msg_size);
SendInfo info = sendData(tup, dest, tag);

auto event_id = info.getEvent();
auto& holder = theEvent()->getEventHolder(event_id);
auto mpi_event = holder.get_event();
mpi_event->setManagedMessage(base.to<ShortMessage>());

// Send the control message to receive the multiple chunks of data
auto m = makeMessage<MultiMsg>(info, this_node, msg_size);
sendMsg<MultiMsg, chunkedMultiMsg>(dest, m);

Expand Down

0 comments on commit cd98980

Please sign in to comment.