Running Simple Batch Jobs
Submitting a job in SLURM is performed by running sbatch command and specifying a job script.
You can put optitions (e.g. --account=xxx) with sbatch command. If such option already be defined in job.script file, it will be overriden by the commandline.
sbatch [options] job.script
A simple example of a Slurm job submission script:
#!/bin/bash #SBATCH --job-name=MyJob
This script describe the information of the job: it is a serial job with only one process (--ntasks=1). It only need one cpu core to run such process.
On MASSIVE, the sample slurm submission scripts have been prepared and can be found here:
To Cancel ONE job
To Cancel all of your jobs
scancel -u [USERID]