Personal Slurm Reference 2015-10-18
Slurm reference and useful things for running jobs on the labs cluster. Might be useful for other people, posting here for future reference.
Base slurm batch file
#!/bin/bash
#SBATCH -N 1 # This requests one node
#SBATCH -n 8 # Request 8 cores on a node
#SBATCH -t 0-10:00 # Walltime days-hours:minutes
#SBATCH --job-name=job_name # Name of the job
#SBATCH --array=0-100 # Array job with 100 tasks
cd $SLURM_SUBMIT_DIR # Change directory to the one where the script was executed
./ThingToRun $SLURM_ARRAY_TASK_ID # Executable that will be run for this job