Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
  module load r/4.2.1.2

To make R 4.2.1 .2 autoload on login

Code Block
  module initadd r/34.12.1

Interactive R use with slurm

...

Code Block
module purge
module load r/4.2.1.2
R
... # here will be the interactive commands with R
exit

...

When the job completes output will be written to helloworld.Rout

MPI

*If anybody has been using R 3.1.1 with Rmpi and knows what version works with it please let us know.

If you prefer to use one of the other MPI implementations compatible with Rmpi, such as MPICH, feel free to install your local package. This was how OpenMPI was installed in a session of R started with fisbatch (change the values in blue to whatever you want):

Code Block
fisbatch
module load r/3.1.1 mpi/openmpi/1.10.1-gcc
R
install.packages('Rmpi', configure.args='--with-Rmpi-include=/apps2/openmpi/1.10.1-gcc/include --with-Rmpi-libpath=/apps2/openmpi/1.10.1-gcc/lib --with-Rmpi-type=OPENMPI')
# When prompted for the mirror, try TX (i.e. 121 at the time of writing) since some mirrors are prob
Note

This part is to be updated.

...

Code Block
#!/bin/bash
#SBATCH -p general
#SBATCH -n 30

source /etc/profile.d/modules.sh
module purge
module load r/34.2.31 mpi/openmpi/gcc/64/1.10.1-gcc7

# If MPI tells you that forking is bad uncomment the line below 
# export OMPI_MCA_mpi_warn_on_fork=0

Rscript mpi.R

...

Each version of R may depend on a different version of MPI, what follows is the known dependencies as of Thu Jun 22 13:30:50 EDT 2017:

...

R Version

...

MPI Version

...

r/3.4.2-gcc540

...

mpi/openmpi/1.10.1-gcc

...

r/3.3.3

...

mpi/openmpi/1.10.1-gcc

...

r/3.2.3

...

mpi/openmpi/1.10.1-gcc

...

r/3.1.1

...

Unknown*

*If anybody has been using R 3.1.1 with Rmpi and knows what version works with it please let us know.

If you prefer to use one of the other MPI implementations compatible with Rmpi, such as MPICH, feel free to install your local package. This was how OpenMPI was installed in a session of R started with fisbatch (change the values in blue to whatever you want):

...