Serial Program
#!/bin/bash
#SBATCH --job-name=my_serial_job # replace name
#SBATCH --mail-user=nobody@zedat.fu-berlin.de # replace email address
#SBATCH --mail-type=end
#SBATCH --ntasks=1
#SBATCH --mem-per-cpu=4096 # replace with value for your job
#SBATCH --time=08:00:00 # replace with value for your job
#SBATCH --qos=standard # replace with value for your job
module add ExampleProg/1.2.3-foss-2018b # replace with value for your job
cd /scratch/${USER} # replace with your directory
exampleprog_serial # replace with your program
The string passed to the option --job-name
name appears in the field Name
in the output of the command squeue
.
Email relating to the job will be send to the address specified by the option --mail-user
. The job events which cause an email to be generated are specified via the option --mail-type
.
The option --mem
specifies the maximum amount of memory required in MB per node. This should always be given, since the default value is only 1 MB per CPU, which will not be enough for many jobs.
The option --time
specifies the maximum amount of wall-clock time required by the job. If this is not given, the default value for the partition will apply and the job will not be able to benefit from backfilling.