Using Sun Grid Engine @ CS


Environment setup

To set up your environment you need to execute this on the command line
source /nfs/sge/current/default/common/settings.csh (if you are using csh/tcsh)\
or
. /nfs/sge/current/default/common/settings.sh (bash)

Status of jobs

To check the status of jobs you can visit http://blast.cs.unm.edu/gemonitor/.

Basic commands

qbsub make OPT=1234 my_target

Advanced options

1. If you need to pass your environment to the Queuing system use the -V flag ie.

qsub -V ./job.sh

For example if you set a specific LD_LIBRARY_PATH that  you want passed to your scripts -V is the way to go.

2. If you need to put the .o and .e files somewhere else other than your home directory add -e and -o flags ie.

qbsub -o $PWD -e $PWD mystuff

This will put both .o and .e files in whatever the present working directory is.
3. To send a job to a particular machine use the -q flag ie.
qsub -q shelby.q,io.q,rhea.q script.pl
Will dispatch the job only to shelby, io or rhea (in that particular order)

4. Request a particular resource ie. machine job needs to run on has to have at least 800 MB of memory use the -l flag ie.
qsub -l mem_total=800M script.pl
or if you need to run a job on MacOS X only do
qsub -l arch=darwin
You could also use glinux for x86 version of Linux and lx24-amd64 for AMD64 architecture ie. AMD Opteron or Athlon64.