Consider the following example .sh file attempting to schedule some jobs with SLURM
#!/bin/bash #SBATCH --account=exacct #SBATCH --time=02:00:00 #SBATCH --job-name="ex_job" #SBATCH --array=1-80 #SBATCH --cpus-per-task=40 #SBATCH --mem-per-cpu=4G #SBATCH --output=%x.%a.out cd /ex_directory srun Rscript ex_script.R
Let's say that jobs 1-40 will take 1 hour and jobs 41-80 will take 2 hours. Is there anyway to explicitly state this to SLURM (I am thinking that if I indicate some jobs will run quicker this will help with priority). Thanks!