Re: [OMPI users] Problem with MPI functions

2013-04-11 Thread Jeff Squyres (jsquyres)
Sorry for the delay in replying. If you have non-contiguous buffers, you might want to investigate using MPI datatypes to describe the memory that you want to send/receive. Google around; you'll find bunches of tutorials on these kinds of things. However, be aware that for a large 2D array, th

[OMPI users] Problem with MPI functions

2013-04-02 Thread Ng Shi Wei
Dear all, I am new in OpenMPI and writing a parallel processing program using openmpi in C++ language. I would like to use the function MPI_Allreduce() but my sendbuf and recvbuf datatype are pointers/arrays (2D). Is it possible to pass in and out the pointers/arrays using the MPI_Allreduce()