[Ilugc] processor's across network.
- From: Toufeeq_Hussain@xxxxxxxxxxx (Toufeeq Hussain)
- Date: Mon Aug 30 17:40:53 2004
Hi,
Now My question is
When I run only one instance of my program How do I make it
run in both the
CPU's.
Running in all the available CPU is what is desirable.
This is where lam and mpi can help you out.
LAM-MPI is Local Area Multicomputer, Message passing Interface.
check out www.lam-mpi.org
has the tutorial on how to setup and some sample code.
A brief explanation:
Say I have 2 nodes. node1 and node2.
My MPI-C Program is programmed in such a way that primes between 1 to 100 are
calculated on node1 and primes between 100 to 200 are calculated on node 2.
both the results are then sent to node1.
MPI Programming is very simple and one can easily MPI-ize their existing C
programs.
Good Code Reuseability.
Also another option is MPICH which enable you to also use Windows based
machines in your cluster.
Another option is JAVA-RMI, a java implementation of mpi in java does exist.try
google/linux
NOTE:: The above mentioned are for a Beowulf Cluster and I'm not sure if a
MOSIX enabled system can successfully implement LAM-MPI.
Regards,
Toufeeq Hussain
Other related posts: