CS 160 Lab 5

Eisenberg-McGuire Algorithm and PVM first step



Objective


  1. Get to know Eisenberg McGuire Algorithm
  2. Get to know Parallel Virtual Machine
  3. setup PVM environment correctly
  4. run PVM examples

Outline of Lab

  1. Eisenberg McGuire Algorithm
  2. Parallel Virtual Machine
  3. Secure Shell configuration
    	0. cd
    	1. ssh-keygen
     	2. cd .ssh
     	3. cp identity.pub authorized_keys
     	4. create a file named "environment" , put the following in it
    		PVM_ROOT=/usr/local/pkgs/pvm3
    		PVM_ARCH=LINUX
    
  4. Set environment variables
    	for bash: 
    in your .bashrc file add the following line
    	 	export PVM_ROOT=/usr/local/pkgs/pvm3
    then append file /usr/local/pkgs/pvm3/lib/bashrc.stub to .bashrc
    at last uncomment the appropriate lines
    
    	for csh: 
    in your .cshrc file add the following line
    		setenv PVM_ROOT /usr/local/pkgs/pvm3
    then append file /usr/local/pkgs/pvm3/lib/cshrc.stub to .bashrc
    at last uncomment the appropriate lines
    
  5. Startup PVM
    	$ ssh hill $PVM_ROOT/lib/pvmd -s
    it should print out two line of message, we do not care about them now.
    	$ pvm
    	pvm>
    
  6. Examples of PVM applications
    	cd
    	mkdir pvm3
    	cd pvm3
    	mkdir bin
    	mkdir examples
    	cd examples
    	cp $PVM_ROOT/examples/* .
    	cp $PVM_ROOT/include/* .
    	aimk
    
    you are encouraged to run those example programs and read the codes.
    
Useful Links
PVM3

Lecture notes
SOLUTION UPDATED on Nov 13! Solution to Assignment 1 (Updated on Nov 13!!)