Both sides previous revision Previous revision Next revision | Previous revision |
doku:sge [2015/04/09 14:41] – [example] ir | doku:sge [2016/06/21 11:31] (current) – ir |
---|
===== Sun grid engine (SGE) ===== | ===== Sun grid engine (SGE) ===== |
==== The job script ==== | ==== The job script ==== |
| It is recommended to write the job script using a [[doku:win2vsc&#the_job_filetext_editors_on_the_cluster|text editors]] on the VSC //Linux// cluster. |
| Editors in //Windows// may add additional invisible characters to the job file which render it unreadable and, thus, it is not executed. |
| |
=== A - the header of the job script === | === A - the header of the job script === |
<code>#$ -N <job_name> | <code>#$ -N <job_name> |
#$ -m beas # all job events sent via email </code> | #$ -m beas # all job events sent via email </code> |
- "<job_name>" is a freely chosen descriptive name, | - "<job_name>" is a freely chosen descriptive name, |
- "<slots>" is the number of processor cores that you want to use for the calculation. To ensure exclusive reservation of the compute nodes for your job, the value for "<slots>" has to be a multiple of 8. | - "<slots>" is the number of processor cores that you want to use for the calculation. The compute nodes are always reserved for your job, exclusively. If the value for "<slots>" is no integral multiple of 16, it is corrected to the next larger integral multiple of 16. |
- "-V" declares that all environment variables in the qsub command's environment are to be exported to the batch job. | - "-V" declares that all environment variables in the qsub command's environment are to be exported to the batch job. |
- "-l" specifies the job's runtime. This explicit specification is in particular advisable for jobs with short run times, i.e., several hours or even minutes. In order to **reduce the time in the queue**, see also the section on [[doku:runtime|maximum runtime specification.]] | - "-l" specifies the job's runtime. This explicit specification is in particular advisable for jobs with short run times, i.e., several hours or even minutes. In order to **reduce the time in the queue**, see also the section on [[doku:runtime|maximum runtime specification.]] |