CS 397: Seminar - Introduction to Parallel Computing

PVM Setup

In order to use pvm, you will need to make a number of changes to your shell environments and add certain directories to your directory structures. It is recommended that you follow the suggestions given here until you are more familiar with the workings of pvm. Pvm expects to find things set up in a particular way, and causing it to adjust takes some doing. If you work with the HP's, do not try to use Liberty. The HP instructions here assume HP's other than Liberty.

Directory Stucture


Environment



Testing the Setup

Now see if you can configure a virtual machine. You should be able to type pvm, get a console prompt, add hosts, see the configuration, quit, etc.

Makefile, examples and testing.

Pvm provides a special frontend to the make utility which does some special things related to pvm. A Makefile is provided for the examples that come with pvm. Probably the best way to get started is to copy this file, Makefile.aimk, from ~whaleyt/pvm3/examples to your examples subdirectory. Also copy a couple of the examples, say hello.c and hello_other.c. Then type "aimk hello hello_other" to have the programs compiled, linked and put into the appropriate bin directory. Then you should be able to run them by typing "hello". Of course pvm needs to be running. If this all works, you should be ready to create your own programs, modify the make file, compile and run. Good Luck!