Rmpi.sbatch 316 Bytes
Newer Older
Research Platforms's avatar
Research Platforms committed
1 2 3 4 5 6
#!/bin/sh

#SBATCH --nodes=1
#SBATCH --ntasks=6
#SBATCH --time=1

root's avatar
root committed
7
module purge
root's avatar
root committed
8
source /usr/local/module/spartan_old.sh
Research Platforms's avatar
Research Platforms committed
9 10 11 12 13 14 15 16
module load R/3.5.0-spartan_gcc-6.2.0
module load Rmpi

# Always use -n 1 for the Rmpi package. It spawns additional processes
# dynamically

mpirun -n 1 R CMD BATCH --no-save --no-restore Rmpi.R