Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

R is compiled with Intel Compilers and MKL.

The SLURM script calling an R script should look like this:


#!/bin/bash -l

#SBATCH --nodes 1 
#SBATCH --ntasks 1 
#SBATCH --cpus-per-task 1
#SBATCH --mem 60000
#SBATCH --time 00:05:00
 
echo STARTING AT `date`

module purge 
module load intel mkl
module load R
./rscript.R
 
echo FINISHED at `date`

...where rscript.sh is executable (chmod +x rscript.sh) and begins with the line

#!/usr/bin/env Rscript
  • No labels