LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2006-03-16 18:41:53


On Mar 16, 2006, at 4:16 PM, Peeyush Jain wrote:

> How do I define a global shared memory in LAM. I am having a problem
> in running a program on more than 1 processor.

<snip>

> Now after executing this on three computer(Because I have given
> 201 vertex for the size to be similar, I get the checksum1 is same for
> all the three processor but that result is obtained by only rank 0
> processor. Thats why I need to knpw whether i can have the global
> shared memory or someone can give me the solution of this problem.

MPI does not provide a global shared memory system. Memory is
distributed per-process and communication between processes only
occurs through explicit communication routines. I'm not sure which
data you need shared in your application, but it would need to be
explicitly moved from one process to the other. You might want to
look at the tutorials available on the web. The LAM/MPI web page
provides a good list of tutorials here:

     http://www.lam-mpi.org/tutorials/

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/