Compute Canada

How do I Setup my Environment to use Grid Engine?

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.

When you first log in you will already have the proper setup for using Gridengine. This is because Gridengine is included in the default settings for usepackage. If for some reason Gridengine seems not to be part of your environent setup, you can add it by issuing the

use sge6


Part of the setup that is done automatically by usepackage is to source a setup-script that is located in the directory


Depending on your login shell, you can also "source" those scripts manually:

For csh or tcsh:


For ksh, bash, etc:


The setup script modifies your search PATH and sets other environment variables that are required to get Grid Engine running. One of those variables is SGE_ROOT which contains the directory in which the Grid Engine-related programs are located.