Re: [OMPI users] Bug MPI_Iscatter

2013-11-22 Thread George Bosilca
On Nov 23, 2013, at 01:18 , Pierre Jolivet wrote: > George, > > On Nov 22, 2013, at 5:21 AM, George Bosilca wrote: > >> Pierre, >> >> On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote: >> >>> George, >>> I completely agree that the code I sent was a good example of what NOT to >>> do with

Re: [OMPI users] Bug MPI_Iscatter

2013-11-22 Thread Pierre Jolivet
George, On Nov 22, 2013, at 5:21 AM, George Bosilca wrote: > Pierre, > > On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote: > >> George, >> I completely agree that the code I sent was a good example of what NOT to do >> with collective and non-blocking communications, so I’m sending a better

Re: [OMPI users] Bug MPI_Iscatter

2013-11-22 Thread George Bosilca
Pierre, On Nov 22, 2013, at 02:39 , Pierre Jolivet wrote: > George, > I completely agree that the code I sent was a good example of what NOT to do > with collective and non-blocking communications, so I’m sending a better one. > 1. I’m setting MPI_DATATYPE_NULL only on non-root processes. The r

Re: [OMPI users] Bug MPI_Iscatter

2013-11-21 Thread Pierre Jolivet
George, I completely agree that the code I sent was a good example of what NOT to do with collective and non-blocking communications, so I’m sending a better one. 1. I’m setting MPI_DATATYPE_NULL only on non-root processes. The root has a real datatype. Why should both match when using MPI_IN_PLA

Re: [OMPI users] Bug MPI_Iscatter

2013-11-21 Thread George Bosilca
Pierre, There are several issues with the code you provided. 1. You can’t use an MPI_DATATYPE_NULL as the send datatype, not even when count is zero. At least the root must provide a real datatype. In fact the type signature of the send message (datatype and count) should match the type signatu

Re: [OMPI users] Bug MPI_Iscatter

2013-11-21 Thread Jeff Hammond
This program makes no sense and is wrong in multiple ways. Jeff On Thu, Nov 21, 2013 at 4:19 PM, Pierre Jolivet wrote: > Hello, > The following code doesn’t execute properly : > #include > > int main(int argc, char** argv) { > int taskid, ntasks; > MPI_Init(&argc, &argv); >

[OMPI users] Bug MPI_Iscatter

2013-11-21 Thread Pierre Jolivet
Hello, The following code doesn’t execute properly : #include int main(int argc, char** argv) { int taskid, ntasks; MPI_Init(&argc, &argv); MPI_Request rq; MPI_Comm_rank(MPI_COMM_WORLD,&taskid); MPI_Comm_size(MPI_COMM_WORLD,&ntasks); double* r; int l = 0;