Slurm Script Example

A Slurm script is a bash script with Slurm directives (#SBATCH) and command-line instructions for running your program.

#!/bin/bash
#SBATCH --nodes=1                   #total number of nodes for the job
#SBATCH --cpus-per-task=1           #total number of cores for the job
#SBATCH --time=1-12:00:00           #amount of time for the whole job
#SBATCH --partition=standard        #the queue/partition to run on
#SBATCH --account=ivy-hip-name      #name of your Ivy group


module purge
module load goolf R       #load modules that my job needs
Rscript myProg.R          #command-line execution of my job
Previous
Next
RC Logo RC Logo © 2026 The Rector and Visitors of the University of Virginia