You don't run lapack. lapack is a library that other applications use.
To use MPICH2, you need to start the mpd daemon on each machine to be used by your program. Make sure you have a file .mpd.conf in your home directory on each machine, with a line like
with your favorite word following. You also need to have passwordless SSH from your machine to all the other machines you will be using.
The primitive way to launch the daemons is to simply type
in a terminal window at each machine. It is more convenient to use mpdboot. To do this, first set up a file mpd.hosts in your home directory, with the names of the machines on which you want daemons to be running; list the network names of the machines, one line per machine, e.g. my mpd.hosts file
Code:
aragorn.clusterfsck.net
boromir.clusterfsck.net
samwise.clusterfsck.net
legolas.clusterfsck.net
gimli.clusterfsck.net
gandolf.clusterfsck.net
meriadoc.clusterfsck.net
pippin.clusterfsck.net
treebeard.clusterfsck.net
frodo.clusterfsck.net
faramir.clusterfsck.net
Then execute
Code:
mpdboot -n <number of machines to start> -f ~/mpd.hosts
To run your program called my_parallel_program
Code:
mpirun my_parallel_program
There are many good HOWTOs for MPICH2 on the internet, including the MPICH2 website. Feel free to use them for more detailed instructions.