Compute Canada

How do I run my PVM code?

Please note: The FAQ pages at the HPCVL website are continuously being revised. Some pages might pertain to an older configuration of the system. Please let us know if you encounter problems or inaccuracies, and we will correct the entries.

To get PVM running, you must start either a pvm deamon pvmd or the PVM console by hand. For the moment let's focuse on how to run PVM from the command line, the next sections will deal with how to run PVM applications as batch jobs via Grid Engine. To start PVM console do the following

%pvm pvm_hostfile

Where pvm_hostfile is a file used to customize your PVM system for a particular application or environment. The hostfile contains at least the list of the hosts (nodes) you intend to use. For example in the case of SunFire nodes you can add this to your hostfile





You can also indicate in the hostfile your working directory, the locations of your executables, etc... . An example of a pvm hostfile can be found in /usr/local/pvm3/pvm_hostfile

After PVM is running, you can spawn your program to the desired number of processes from the pvm console

pvm> spawn -nslots -> executable

or you run your executable from the Unix command line, like any other program.