Send an object via MPI using serialization

tl;dr: Let us discuss about MPI and serialization.

To send an object instance with MPI, there are three main options:

Serialization

Let us discuss here about serialization. One uses the Boost.Serialization library to convert the object into a byte stream. Then MPI_Send can be used to send the stream, and MPI_Recv used to receive it. Finally, arrived at its destination, one deserialize the stream into an object again.

(In progress)

Present simple exemple of serialization → send → deserialization

Ressources


Thanks for reading! Go back for more notes.