Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Simple Doubt about MPI_Gather in C
From: Maginot Junior (maginot.junior_at_[hidden])
Date: 2012-07-17 15:24:00


On Tue, Jul 17, 2012 at 4:14 PM, Ghobad Zarrinchian
<gzarrin.edu_at_[hidden]> wrote:
> Dear friend
>
> Generally, if you have an array with x elements of a given type (e.g.
> MPI_Int) you should use x as your SENDCOUNT parameter. Providing the name of
> the SEND buffer just determine the start address of the buffer and you
> should expilicitly specify how many elements should be sent.
> Tu be sure, execute some sample programs and check the behavior.
>
> On Tue, Jul 17, 2012 at 10:24 PM, Maginot Junior <maginot.junior_at_[hidden]>
> wrote:
>>
>> Hello, I'm starting with openmpi and still have some doubts and I
>> think I'm making some confusion around here.
>>
>>
>> When using MPI_Gather, if SENDBUF is an array of x elements SENDCOUNT
>> should be 1 if I want to send this entire array or should I use x as
>> SENDCOUNT parameter (telling to fetch x elements of SENDTYPE from
>> SENDBUF)?
>>
>>
>>
>>
>>
>> Regards
>>
>> --
>> Maginot Júnior
>>
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

Thank you for answering.

best regards,

--
Maginot Jr.