running batch jobs


Batch jobs are run on SeARCH by submitting a job script to the scheduler. The script contains the commands needed to set up your environment and run your application.
To submit jobs on SeARCH, the SLURM sbatch command should be used:

$ sbatch

A batch script example:

#!/bin/bash
#SBATCH –job-name=zx # Job name
#SBATCH –output=%x-%j.out # Output file
#SBATCH –error=%x-%j.err # Error file
#SBATCH –partition=day # partition (day,week,fortnight,month)
#SBATCH –constraint=m64 # node with 64GB of memory
#SBATCH –time=01:0:00 # Wall clock time limit
#SBATCH –nodes=1 # Number of nodes
#SBATCH –ntasks=16 # Number of cores

[insert code to run here]