How to run MPI Programs after setting up the cluster ?

3 messages Options
Embed this post
Permalink
Rahul8590

How to run MPI Programs after setting up the cluster ?

Reply Threaded More More options
Print post
Permalink
I am doing my research on cluster computing and my search for idle cluster environment ended when i found pelicanHPC.

Well i booted the image of the disk which in turn made it the server node
Then i booted the other systems (2 PC) and the client nodes were detected.
The client nodes also booted pelicanHPC (that was a gr8 experience) .
Now , i would like to run MPI programs in the cluster environment , i don't know how to proceed ,
i would be glad if you guys can help me out.

sudeepk

Re: How to run MPI Programs after setting up the cluster ?

Reply Threaded More More options
Print post
Permalink
After writing a MPI programs you can compile them by using the following commands

For c
mpicc hello.c –o hello
For c++
mpiCC hello.cc –o hello
For fortran
mpiff hello.f –o hello

For running a the MPI programs

mpirun C hello
The C option means “launch one copy of hello on
every CPU that was listed in the boot schema.
mpirun N hello
N means “launch one copy of hello on every node in
the LAM universe.” Hence, N disregards the CPU count.
This can be useful for multithreaded
MPI program
mpirun –np 4 hello
This runs 4 copies of hello. LAM will “schedule” how
many copies of hello will be run in a roundrobin fashion
on each node by how many CPUs were listed in the boot
schema file.

I have done a lame documentation regarding the building of a cluster and running MPI programes. You can donwload it from http://sudeepk.info/projects/clustering.pdf 
Michael Creel

Re: How to run MPI Programs after setting up the cluster ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Rahul8590
Another option would be to try ParallelKnoppix, which is similar to PelicanHPC, but it also has a number of examples. The last version of PK is available at the PelicanHPC download page.