There's `Gather` (low-level, adapted straight from the MPI standard) and
`gather` (high-level, convenient for Julia, but apparently not yet
implemented).

-erik

On Sat, Oct 1, 2016 at 3:50 PM, Joaquim Dias Garcia <
[email protected]> wrote:

> Thanks! Thats nice, I was misled by the gather function, i think I was
> looking too low level.
>
> Joaquim
>
> On 1 Oct 2016, at 16:37, Erik Schnetter <[email protected]> wrote:
>
> 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/
>
>


-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to