Jan. 5 1993 pkc Oct. 4 1994 updated for version 3.3.4 ... pkc Aug. 2 1995 updated as to adding code to .cshrc ... pkc Oct. 4 1995 updated for version 3.3.9 and Solaris 2.x ... pkc Mar. 9 1998 updated for version 3.3.11 and Linux ... pkc Jan. 20 2000 updated for version 3.4.2 on sigma network ... pkc Oct. 15 2003 updated for version 3.4.4 on epsilon network ... miles Oct. 22 2003 updated with example (tested) ... miles NOTE: for more info on PVM check out: http://www.netlib.org/pvm3/ PVM 3.x Configuration Step 1 - Directory Setup ------------------------ Before you can use PVM a number of directories have to be setup in your home directory: 1) Create directory ~/pvm3 and point pvm at it $ mkdir ~/pvm3 $ setenv PVM_ROOT ~/pvm3 2) Create place for PVM programs $ mkdir -p ~/pvm3/bin/LINUX 3) Link in lib, and other dirs from /usr/share/pvm3/lib $ cd ~/pvm3 $ ln -s /usr/share/pvm3/{conf,lib,include} . $ cd bin/LINUX $ ln -s /usr/share/pvm3/bin/LINUX/* . 4) The default setup of PVM uses rsh but the examples use ssh. To setup pvm to run with ssh set $ setenv PVM_RSH /usr/bin/ssh Note: You can add the two setenv lines to your ~/.cshrc and then those commands will run automatically whenever you log into an epsilon machine. Otherwise you will have to run those commands everytime you logout and log back in again. Step 2. Testing ssh ------------------- In order for pvm to work, it has to execute command ssh from one host to another without having to give a password. In order not to have to supply a password each time do: 1. ssh-keygen -t rsa 2. now enter a filename, ie, identity and no passphrase 3. make sure you have ~/.ssh dir and 'chmod 700 ~/.ssh'. 4. mv identity.pub ~/.ssh/authorized_keys 5. chmod 600 ~/.ssh/authorized_keys 6. mv identity ~/.ssh/identity Since ssh requires first time users to answer yes/no when connecting to a new host, you will have to ssh to each of the hosts and answer yes ( there is a script that will help you with this ). Run command: /usr/local/lam70/ssh_init Re-run the command again - this time you should not be asked to answer yes/no - all hosts should report as being OK: /usr/local/lam70/ssh_init Now try to ssh to the another host, and see if .cshrc has been setup the right way - execute: ssh epsilon05 pwd it has to work and display your home directory. You need to add directory ~/pvm3/lib to your search path. Take a look at script /usr/share/pvm3/lib/cshrc.stub. You should be able to add this to your ~/.cshrc file. Important note: make sure to add the above code before if ( $?prompt ) code in your .cshrc file, as this code checks for non-interactive login and stops executing .cshrc at that point. To test if .cshrc is setup the right way do: ssh 'some-host' setenv e.g. ssh epsilon09 setenv | grep -i pvm and look for PVM_ROOT variable. Step 3 - Run a pvm test ----------------------- [epsilon]$ mkdir ~/pvm3/examples [epsilon]$ cd ~/pvm3/examples [epsilon]$ cp /usr/share/pvm3/examples/{Readme,Makefile.aimk,hello*} . [epsilon]$ ../lib/aimk hello [epsilon]$ ../lib/aimk hello_other At this point you have hello program in directory ~/pvm3/bin/LINUX, but before you can run it, pvm has to be started. Lets create a small network of 3 systems: [epsilon]$ cd ~/pvm3 We need a file listing names of hosts to start PVM on - a quick and simple way is to use cat, and keep on typing host names, ending with Ctl-D [epsilon ~/pvm3]$ cat > hostfile epsilon03 epsilon04 epsilon05 Now start pvm on the above hosts ( note that if you are not on one of the above hosts, it will be added to the pvm network automatically ): [epsilon ~/pvm3]$ lib/pvmd hostfile & Check if your PVM system is up: [epsilon05 ~/pvm3]$ lib/pvm pvm> add epsilon03 pvm> conf <<<<<<< do a number of conf until you see all systems pvm> add epsilon04 pvm> conf pvm> quit Run the example ( run it a number of times to see messages from different systems ): [epsilon ~/pvm3]$ bin/LINUX/hello [epsilon ~/pvm3]$ bin/LINUX/hello [epsilon ~/pvm3]$ bin/LINUX/hello When done shutdown pvm with: [epsilon ~/pvm3]$ lib/pvm pvm> halt At this point you should be able to try some of the other examples. As before copy them to ~/pvm3/examples, and compile them with ../lib/aimk script - good luck. More help --------- 1. Setup and help: less /usr/share/pvm3/Readme 2. Try the man pages: 'man pvm' or 'man pvm_intro' for detailed pvm help 3. For info about common linux commands try the SCS webpage: http://www.scs.carleton.ca/nethelp/generalinfo/unixhelp.shtml 4. Copy the /usr/share/pvm3/pvmtest.33.tgz file to your homedir and gunzip and untar it. Follow the instructions to test if pvm runs. Good luck !