Just run a command like:
module load lang/R
sbatch --job-name=myjob --mem=4G --time=5-0:0 --output=myjob.slurm.log --wrap="Rscript /opt/scc/generic/examples/SLURM/myscript.R"
--job-name=<job name>
: A name for the job. (Default is a random number)--time=<days>-<hours>:<minutes>
: time limit, after which the job will be killed. (Default is 25 hours)--mem
can useG
for GB orM
for MB. (default is2G
)--output=<filename>
: where to write STDOUT and STDERR (default isslurm-<job_id>.out
)
SLURM has short versions for some of its options eg:
sbatch -J myjob --mem=4G -t 5-0:0 -o myjob.slurm.log --wrap="Rscript /opt/scc/generic/examples/SLURM/myscript.R"