Compute Canada

How do I setup my environment to run PVM with GridEngine?

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.

Once your PVM application is debugged and ready for running, we recomand that you send your job in batch mode via Grid Engine. For this purpose you have to add some environment variables needed for the integration between PVM and Grid Engine.

First, make sure that the Grid Engine settings are already defined in your .cshrc or .bashrc file. Otherwise add one of the following lines to your environment (see Grid Engine FAQ)

source /opt/codine52/default/common/settings.csh (for csh or tcsh)

. /opt/codine52/default/common/settings.sh (for ksh or bash)

After that set the folloing environment variables so that GE could export them to all the nodes running your PVM application.

export PVM_ROOT=/usr/local/pvm3

export PVM_RSH=$CODINE_ROOT/pvm/pvm_rsh

export PVM_PATH=:

export PVM_WD=

If this variables are included in your .cshrc or .bashrc don't forget to export them with Grid Engine via the command ``qsub -V'' while submitting your job, or with setting ``#$ -V'' in your batch script file.

You can also define this environment variables in the pvm batch script file and export them via the setting ``#$ -V'' as shown in the next section.