Long Running Slurm Job

This is a variant of the simple sequential Slurm job, but we move the submission of the job to the long partition which allows for jobs running more than 48 hours:

#!/bin/bash

#SBATCH --account=myhpcproject
#SBATCH --partition=long_free
#SBATCH --cpus-per-task=1
#SBATCH --mem=1G
#SBATCH --time=7-00:00:00

# Log when we started
echo "Job started at: `date`"

# Show which node(s) we are running on
HOSTNAMES=`scontrol show hostnames $SLURM_JOB_NODELIST`
echo "Job is running on: $HOSTNAMES"

# Add any 'module load' commands here

# Add your custom commands you want to run here

# Log when we finished
echo "Job finished at: `date`"


Back to Getting Started