In Julia, `MPI` can send objects of any type. These objects will automatically be serialized and deserialized. The respective functions are
```Julia function send(obj, dest::Integer, tag::Integer, comm::Comm) function recv(src::Integer, tag::Integer, comm::Comm) ``` Note the lower-case function name, which indicates (following the Python convention) a higher-level interface to MPI. There is also a function `irecv` that checks whether a message containing such an object can be received, and receives it if so. -erik On Sat, Oct 1, 2016 at 3:19 PM, Joaquim Masset Lacombe Dias Garcia < [email protected]> wrote: > Hi all, > > I have the following type: > > type bar > a::Int > b::Vector{Matrix{Float64}} > c::Vector{Float64} > end > > I would like to send instances of that type via MPI. > Can I do it? > Is there any serialization/deserialization procedure i could use for that? > > thanks! > -- Erik Schnetter <[email protected]> http://www.perimeterinstitute.ca/personal/eschnetter/
