Re: [OMPI users] Simple Doubt about MPI_Gather in C

2012-07-17 Thread Maginot Junior
On Tue, Jul 17, 2012 at 4:14 PM, Ghobad Zarrinchian 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

Re: [OMPI users] Simple Doubt about MPI_Gather in C

2012-07-17 Thread Ghobad Zarrinchian
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 s

[OMPI users] Simple Doubt about MPI_Gather in C

2012-07-17 Thread 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 element