#!/bin/bash #SBATCH --job-name=snow-test #SBATCH --nodes=4 #SBATCH --time=10 #SBATCH --exclusive module load R/3.1+intel-15.0 # the openmpi module is not loaded by default with R module load openmpi/1.8+intel-15.0 # Always use -n 1 for the snow package. It uses Rmpi internally to spawn # additional processes dynamically mpirun -np 1 Rscript snow-test.R