Dear Aidaros,
On 2/6/07, Aidaros Dev <aidaros.dev_at_[hidden]> wrote:
> Dear All
> I have a simple question.
> I got confused about when we should use MPI.
> MPI use in clusters, means there is no shared memory. Processors need to
> communicate other processors in different node by send/recieve
> mpi-functions.
> In Semmetric multiprocessor (SMP) computer, no cluster, it is shared memory,
> since it is shared memory (Single address space), processors need NOT to
> communicate with other processors by send/receive mpi-function. So what is
> the advantages using MPI on SMP?
> Should MPI use only on Cluster?.
> For example i have a computer with 2 CPU. what is the advantages to use MPI?
If you google around, you'll find a bunch of tutorials and answers to
your questions. A few pointers here:
- if you are certain you will only deal with shared memory, you might
want to look at OpenMP
- one nice feature of MPI is that whether in a cluster of SMP machines
or a single SMP machine, you do not need to make any changes to your
code; this is taken care of for you; this is what I do.
- some people combine MPI with OpenMP, but I've read it gets to be a pain;
- you might also want to look at UPC (unified parallel C).
Best,
R.
> --
> A friend in need Is a friend indeed
>
> -----------------------------------------------------------
>
> _______________________________________________
> This list is archived at
> http://www.lam-mpi.org/MailArchives/lam/
>
--
Ramon Diaz-Uriarte
Statistical Computing Team
Structural Biology and Biocomputing Programme
Spanish National Cancer Centre (CNIO)
http://ligarto.org/rdiaz
|