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: Ghobad Zarrinchian (gzarrin.edu_at_[hidden])
Date: 2012-07-17 15:14:59

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

> 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
> Regards
> --
> Maginot Júnior
> _______________________________________________
> users mailing list
> users_at_[hidden]