PVM Example

Home > Help Files > Software Applications > PVM > Examples >

  1. Log into a linux machine such as kepler.berkeley.edu
  2. mkdir -p ~/pvm3/bin/LINUX
  3. cd ~/pvm3/bin/LINUX
  4. cp /usr/share/pvm3/examples/hello* ./
  5. cc -g -Wall -I/usr/share/pvm3/include -L/usr/share/pvm3/lib/LINUX -o hello_other hello_other.c -lpvm3
  6. Follow the instructions on our online PVM help page on how to start PVM, adding 2 or more machines for testing.
  7. ./hello
  8. ./hello
  9. If you run hello a few times, it will go through all the hosts you added to PVM. And you will see echos from those hosts.

 


Comments to consult@newton.berkeley.edu
© 1998-2009 UC Regents