In order to use MPI with R, there are a number of prerequisites we need to install. The picture is a little more complicated for setting up MPI as compared to other R packages as we require both an R interface to MPI and an implementation of MPI that it will call into. We also have a number of options available to us, both for the R package and for the underlying MPI subsystem.
There are two MPI-based R-interfacing packages available that we can make use of, namely Rmpi
and pbdMPI
:
Note
Rmpi
is available from CRAN at the following link: https://cran.r-project.org/web/packages/Rmpi/index.html
The main Rmpi
website is http://www.stats.uwo.ca/faculty/yu/Rmpi/.
Instructions for installing Rmpi
on Mac OS X are provided at http://www.stats.uwo.ca/faculty/yu/Rmpi/mac_os_x.htm.
Instructions for installing Rmpi
on Windows are provided at http://www.stats.uwo.ca/faculty/yu/Rmpi/windows.htm.
The pbdMPI
package is available from CRAN at...