Evolution of a Parallel Program
Installing PVM
On the Cluster at the CIM, PVM is installed systemically in the
directory: /usr/src/pvm3/
It is recommended to copy this directory recursively to your home
directory:
/home/beowulf/scottyb> cp -Rfv /usr/share/pvm3 ~/pvm
[Please don't overwrite an important directory called ~/pvm if you
already have one!!]
If you use Bash add the following line to your
~/.bash_profile:
###################################################################
# This is the snippit that everyone should include in their rc file
# It looks for a local pvm directory which should be a copy of the
# system one, or it uses the system on in /usr/share/pvm3
export PVM_ROOT=$HOME/pvm
if [ -f /usr/share/pvm3/lib/bashrc.stub ]; then
source /usr/share/pvm3/lib/bashrc.stub
fi
###################################################################
or the C-shell version for your ~/.cshrc:
###################################################################
# This is the snippit that everyone should include in their rc file
# It looks for a local pvm directory which should be a copy of the
# system one, or it uses the system on in /usr/share/pvm3
setenv PVM_ROOT ~/pvm
if (-f /usr/share/pvm3/lib/cshrc.stub ) then
source /usr/share/pvm3/lib/cshrc.stub
endif
###################################################################
NB: Don't set the PVM_ROOT environment variable if you haven't done
the copy, ie. if you don't have a directory called ~/pvm. Just leave
that line out and things will still work.
Create a file in your home directory called ~/.pvmrc and copy
the following line into it:
add miles.beowulf.cim trane.beowulf.cim bird.beowulf.cim louis.beowulf.cim ella.beowulf.cim brownie.beowulf.cim monk.beowulf.cim dexter.beowulf.cim henderson.beowulf.cim jarrett.beowulf.cim corea.beowulf.cim mobley.beowulf.cim morgan.beowulf.cim rollins.beowulf.cim tyner.beowulf.cim
Starting PVM
Start PVM by issuing the command:
/home/beowulf/scottyb> pvm
You should see very much like:
[scottyb@gil ~]$ pvm
add miles.beowulf.cim trane.beowulf.cim bird.beowulf.cim louis.beowulf.cim ella.beowulf.cim brownie.beowulf.cim monk.beowulf.cim dexter.beowulf.cim henderson.beowulf.cim jarrett.beowulf.cim corea.beowulf.cim mobley.beowulf.cim morgan.beowulf.cim rollins.beowulf.cim tyner.beowulf.cim
15 successful
HOST DTID
miles.beowulf.cim 80000
trane.beowulf.cim c0000
bird.beowulf.cim 100000
louis.beowulf.cim 140000
ella.beowulf.cim 180000
brownie.beowulf.cim 1c0000
monk.beowulf.cim 200000
dexter.beowulf.cim 240000
henderson.beowulf.cim 280000
jarrett.beowulf.cim 2c0000
corea.beowulf.cim 300000
mobley.beowulf.cim 340000
morgan.beowulf.cim 380000
rollins.beowulf.cim 3c0000
tyner.beowulf.cim 400000
pvm> quit
Typing "quit" at the PVM command line will leave pvm in a running
state, and ready to go.
Typing "halt" will end your PVM session, this should be done at the
end of each session, but doesn't really matter.