diff --git a/src/communicator.cc b/src/communicator.cc index 1fd64132..469502b7 100644 --- a/src/communicator.cc +++ b/src/communicator.cc @@ -86,7 +86,9 @@ struct MemoryReceiver : public Setuppable { std::vector data; bootstrap->recv(data, remoteRank_, tag_); - memoryPromise_.set_value(RegisteredMemory::deserialize(data)); + auto memory = RegisteredMemory::deserialize(data); + memory.data(); + memoryPromise_.set_value(memory); } std::promise memoryPromise_;