[MPICH] Send and Recv Guidance Needed

Erich Peterson erichpeterson at hotmail.com
Tue Apr 10 22:52:10 CDT 2007

Hi all,

                I am trying to come up with the best way to approach this. I
am want to have many processes access a file, each gathering records, using
a specified criteria (which is not important here). I want each process to
send each record (100 bytes long) it matches to process rank 0 as a string.
Lastly, I want rank 0 to place all the records it receives into a vector of
strings (vector<string>).

                I thought of letting each process call MPI_Send() from each
record it matches and have process rank 0 call MPI_Recv, but, process rank 0
won't know how many times to call MPI_Recv to receive all the records.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20070410/fa6760ba/attachment.htm>

More information about the mpich-discuss mailing list