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
- Make a subdirectory called pvm3.
- Make a subdirectory of pvm3 called bin.
- Make a subdirectory of pvm3/bin called SGI5 on SGI's, HPPA on HP's, NEXT on the NeXt's. This is the directory that will hold the executables.
- Make a subdirectory of pvm3 called examples (or whatever) to hold your source programs.
Environment
- Add the following to your PATH variable (with appropriate substitutions for SGI5):
- /usr/local/pvm3
- /usr/local/pvm3/lib
- /usr/local/pvm3/bin/SGI5
- /usr/local/pvm3/lib
- /usr/local/pvm3/lib/SGI5
- ~/pvm3/bin/SGI5
- Shell and Environment Variables
- SGI: Add the following to your .zshenv file:
PVM_ROOT=/usr/local/pvm3
PVM_ARCH=SGI5
XPVM_ROOT=/usr/local/pvm3/xpvm
TCL_LIBRARY=/usr/local/pvm3/xpvm/src/tcl
TK_LIBRARY=/usr/local/pvm3/xpvm/src/tcl
export PVM_ROOT PVM_ARCH XPVM_ROOT TCL_LIBRARY TK_LIBRARY
- HP:
- Copy the files .cshrc and .login from ~whaleyt/pvm3/setup to your home directory.
- Change your login shell to csh (chsh user-name /bin/csh) on each of the HP's
- NeXt: Copy the file .cshrc from ~whaleyt/pvm3/setup to your home directory.
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!