Re: [OMPI devel] failure with zero-length Reduce() and both sbuf=rbuf=NULL

2010-02-09 Thread Lisandro Dalcín
          MPI_INT, >                       MPI_SUM, >                       MPI_COMM_WORLD); > #if 1 >  ierr = MPI_Reduce( >                    NULL, NULL, >                    0, >                    MPI_INT, >                    MPI_SUM, >                    0, >                    MPI_COM

Re: [OMPI devel] failure with zero-length Reduce() and bothsbuf=rbuf=NULL

2010-02-10 Thread Lisandro Dalcín
l think that (sendbuf=NULL,recvbuf=NULL,count=0) should work. Not sure about (sendbuf=(void*)1,recvbuf=(void*)1,count=0) , but I can imagine cases were this would be nice to have (e.g. some dynamic language, or library, or even user code that employs a singleton for zero-length arr