Bureaucrats, cc_docs_admin, cc_staff
2,320
edits
No edit summary |
No edit summary |
||
Line 175: | Line 175: | ||
<!--T:26--> | <!--T:26--> | ||
2. Select the R version and load the required Open MPI module. This example uses Open MPI version 1. | 2. Select the R version and load the required Open MPI module. This example uses Open MPI version 3.1.2 which is needed to spawn processes correctly; the default Open MPI module 2.1.1 has a problem with this. | ||
<source lang="bash"> | <source lang="bash"> | ||
module load r/3. | module load gcc/7.3.0 | ||
module load openmpi/1. | module load r/3.6.0 | ||
module load openmpi/3.1.2 | |||
</source> | </source> | ||
Line 184: | Line 185: | ||
3. Download [https://cran.r-project.org/web/packages/Rmpi/index.html the latest Rmpi version]; change the version number to whatever is desired. | 3. Download [https://cran.r-project.org/web/packages/Rmpi/index.html the latest Rmpi version]; change the version number to whatever is desired. | ||
<source lang="bash"> | <source lang="bash"> | ||
wget https://cran.r-project.org/src/contrib/Rmpi_0.6- | wget https://cran.r-project.org/src/contrib/Rmpi_0.6-9.tar.gz | ||
</source> | </source> | ||
Line 197: | Line 198: | ||
5. Run the install command. | 5. Run the install command. | ||
<source lang="bash"> | <source lang="bash"> | ||
R CMD INSTALL --configure-args="--with-Rmpi-include=$EBROOTOPENMPI/include --with-Rmpi-libpath=$EBROOTOPENMPI/lib --with-Rmpi-type='OPENMPI' " Rmpi_0.6- | R CMD INSTALL --configure-args="--with-Rmpi-include=$EBROOTOPENMPI/include --with-Rmpi-libpath=$EBROOTOPENMPI/lib --with-Rmpi-type='OPENMPI' " Rmpi_0.6-9.tar.gz | ||
</source> | </source> | ||