Using PVM (3.3.10) in the CSAM Department at IIT


This page contains information about the PVM & XPVM setup for users of the deltas cluster. There is extensive PVM information and documentation available on the WWW. A good starting point is the Oak Ridge National Laboratory - Computer Sciences Group where the PVM package was developed.


Changes to your environment - standard configuration

Here is what you need to do to start using PVM on the deltas (for csh users).

     setenv PVM_ROOT /a/apps/pvm3 
     setenv PVM_ARCH SGI5 
     set path=($path $PVM_ROOT/lib/SGI5) 
     setenv XPVM_ROOT /a/apps/xpvm
     news 
then move this into the .login file since `news' will attempt to print a message.
     mkdir ~/pvm3
     mkdir ~/pvm3/bin
     mkdir ~/pvm3/bin/SGI5
     delta5 
If you plan to be able to start PVM from more than one host, then add the name of each of them in the .rhosts file, one per line.
     chmod go-rwx .rhosts 
     delta5 
     delta0 
     delta1 
     delta2 
The above host file assumes you'll be using up to four hosts, with their names listed at the beginning of each line. If you start the PVM daemons using pvmd3, then a daemon will be started on each host listed in myhostfile.

Changes to your environment - customized configuration

We strongly recommend you to use a standard setup for your PVM configuration. Many software tools developed around PVM rely on the standard configuration to do their work: using a non-standard configuration calls for trouble in the future when you will try to use some of those tools.

The custmized environment described below allows you to do your work in a different directory than the standard ~/pvm3/bin/SGI5/

Here is what you need to do to start using PVM on the deltas (for csh users).

     setenv PVM_ROOT /a/apps/pvm3 
     setenv PVM_ARCH SGI5 
     set path=($path $PVM_ROOT/lib/SGI5) 
     setenv XPVM_ROOT /a/apps/xpvm
     news 
then move this into the .login file since `news' will attempt to print a message.
     cd
     mkdir my_pvm
     delta5 
     chmod go-rwx .rhosts 
     delta5   ep=$HOME/my_pvm   wd=$HOME/my_pvm 
     delta0   ep=$HOME/my_pvm   wd=$HOME/my_pvm 
     delta1   ep=$HOME/my_pvm   wd=$HOME/my_pvm 
     delta2   ep=$HOME/my_pvm   wd=$HOME/my_pvm 
The above host file assumes you'll be using up to four hosts, with their names listed at the beginning of each line.

Compiling a PVM application

     #include "pvm3.h"

A makefile which builds an executable from two source files can be downloaded.


Run the PVM executable

     pvmd3 myhostfile &

An example

     cd ~/pvm3/bin/SGI5/
     cp /a/apps/pvm3/examples/hello.c  .
     cp /a/apps/pvm3/examples/hello_other.c  .
     make -f make_hello
     pvmd3 myhostfile &
     hello
     hello
     hello
     hello


Local help

     man -M /a/apps/pvm3/man pvm_intro 
Some documentation is available in /a/apps/pvm3/doc/
     xpvm -HELP
Yes, you use capitals!

Back to Parallel Processing in the CSAM Department at IIT


This page has been created (May 26, 1996) by: Virgil Bistriceanu - virgil@csam.iit.edu
This page is maintained by: Virgil Bistriceanu - virgil@csam.iit.edu
Last update: September 25, 1996