#!/bin/bash -l # .... #SBATCH --job-name=sweep_R #SBATCH --array=1-200 ... # # [EDIT] Execute your OpenMP/threaded program using the srun command: # ## Parameter sweep array job to run the sweep.R with ## lambda = 0,1,2. ... 199 ## # Add vpkg_require commands vpkg_require r/3.5 date "+Start %s" echo "Host $HOSTNAME" let lambda="$SLURM_ARRAY_TASK_ID-1" let taskCount=200 # Syntax: Rscript [options] filename.R [arguments] Rscript --vanilla sweep.R $lambda $taskCount date "+Finish %s"