[OMPI users] openMPI, transfer data from multiple sources to one destination

2008-12-28 Thread Jack Bryan
HI, I need to transfer data from multiple sources to one destination. The requirement is: (1) The sources and destination nodes may work asynchronously. (2) Each source node generates data package in their own paces. And, there may be many packages to send. Whenever, a data package

Re: [OMPI users] openMPI, transfer data from multiple sources to one destination

2008-12-28 Thread Win Than Aung
please refer to following code, which sends data to root from multiple cour There is only one receive, so it receives only one message. When you specify the element count for the receive, you're only specifying the size of the buffer into which the message will be received. Only after the messa

Re: [OMPI users] openMPI, transfer data from multiple sources to one destination

2008-12-28 Thread Terry Frankcombe
It sounds like you may like to read about MPI_ANY_SOURCE as the source for MPI_Recv. Using MPI_Probe, with MPI_ANY_SOURCE, may also be a solution. > HI, > > I need to transfer data from multiple sources to one destination. > The requirement is: > > (1) The sources and destination nodes may work

Re: [OMPI users] openMPI, transfer data from multiple sources to one destination

2008-12-29 Thread Biagio Lucini
Jack Bryan wrote: HI, I need to transfer data from multiple sources to one destination. [...] Probably it is not the best solution, but what I did was the following: a) the receiver listen for transmitters ready to send data with MPI_IRECV. The message overwrites a logical array, which is in

Re: [OMPI users] openMPI, transfer data from multiple sources to one destination

2009-01-05 Thread Eugene Loh
Jack Bryan wrote: I need to transfer data from multiple sources to one destination. The requirement is: (1) The sources and destination nodes may work asynchronously.   (2) Each source node generates data package in their own paces.     And, there may be many packages to send. Whenever,