Kaveh Moallemi wrote:
> Hello,
>
> I've been assigned to take an existing C program and to modify it with
> MPI so that it could run in parallel on our cluster.
>
> The program consists of a graph and a few other linked lists. Since
> MPI doesn't provide explicit shared memory, I was wondering how I
> would handle the linked lists. Any suggestions?
>
> I'm a novice programmer ... so apologies in advance if this is a dumb
> question :)
>
> Thank you.
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
since MPI is a low level parallel programming library, a way to handle
linked objects easily is to pack them into arrays before send
operations. after the receipts, the linked objects are rebuilt from the
receive buffer.
more generally, this method consists in considering send and receive
buffers as binary files in which data is stored.
i hope this will help you.
|