Download as a PDF
Transcript
executed when a compute node is available. You have to specify the command to run with echo and pipe the string to qsub, thus submitting the batch job. The qsub command needs several options in order to specify the required resources, e.g. the number of CPUs and amount of memory to reserve, the operating system and the runtime. $ echo "module switch intel gcc/4.4; jacobi.exe < input" | qsub -o ‘pwd‘/output.txt -j y -l h_rt=00:01:00 -l h_vmem=700M -l threads=2 -l ostype=linux -m beas -wd ‘pwd‘ -M <your_email_address> 76 You will get an email when the job is finished if you enter your email address instead of <your_email_address>. The output of the job will be written to output.txt in the current directory. The same job can be scripted in a file, say simplejob.sh, in which the options of qsub are saved with “#$” magic cookie: #!/usr/bin/sh #$ -o output.txt #$ -j y #$ -cwd #$ -l h_rt=00:01:00 #$ -l h_vmem=700M #$ -l threads=2 #$ -l ostype=linux #$ -m beas #$ -M <your_email_address> module switch intel gcc/4.4 jacobi.exe < input To submit a job, use $ qsub simplejob.sh You can also mix both ways to define options; the options set over commandline are preferred. 76 This is not the recommended way to submit jobs, however you do not need a job script here. You can find several example scripts in chapter 4.5 on page 27. The used options are explained there as well. 102 The RWTH HPC-Cluster User's Guide, Version 7.2, November 2010