0% found this document useful (0 votes)
29 views

Submission Scripts

The document provides examples of submission scripts for running Matlab jobs on the cluster. For long jobs over a week, use the 'matlab.q' queue. For shorter jobs between hours to a few days, use the 'matlabsh.q' queue. Both example scripts set the queue, request 12 Matlab licenses, print the error path and mail variables, and run a Matlab script called 'mytest' or 'mytestsh'.

Uploaded by

Zeke Juarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Submission Scripts

The document provides examples of submission scripts for running Matlab jobs on the cluster. For long jobs over a week, use the 'matlab.q' queue. For shorter jobs between hours to a few days, use the 'matlabsh.q' queue. Both example scripts set the queue, request 12 Matlab licenses, print the error path and mail variables, and run a Matlab script called 'mytest' or 'mytestsh'.

Uploaded by

Zeke Juarez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

qstat u * f

For long jobs (a week or more) use the matlab.q in the submission script.

## myscript submission script ##


#!/bin/bash
#$ -N testjob
#$ -M [email protected]
## #$ -M [email protected]
#$ -m beas
#$ -S /bin/bash
#$ -V
#$ -q matlab.q
###$ -q all.q
#$ -cwd
#$ -pe matlab 12
echo $SGE_STDERR_PATH
echo $SGE_O_MAIL
matlab -nodisplay -nosplash -nodesktop -r mytest
## End myscript ##

For shorter jobs (hours to a few days) use the matlabsh.q in the submission script.
## myscript submission script ##
#!/bin/bash
#$ -N testjob
#$ -M [email protected]
## #$ -M [email protected]
#$ -m beas
#$ -S /bin/bash
#$ -V
#$ -q matlabsh.q
###$ -q all.q
#$ -cwd
#$ -pe matlab 12
echo $SGE_STDERR_PATH
echo $SGE_O_MAIL
matlab -nodisplay -nosplash -nodesktop -r mytestsh
## End myscript ##

You might also like