Bureaucrats, cc_docs_admin, cc_staff
2,306
edits
(fix code-block) |
No edit summary |
||
Line 242: | Line 242: | ||
2. Select the R version and load the required Open MPI module. This example uses Open MPI version 4.0.3 to spawn the processes correctly. | 2. Select the R version and load the required Open MPI module. This example uses Open MPI version 4.0.3 to spawn the processes correctly. | ||
<source lang="bash"> | <source lang="bash"> | ||
module load gcc/ | module load gcc/11.3.0 | ||
module load r/4. | module load r/4.2.1 | ||
module load openmpi/4. | module load openmpi/4.1.4 | ||
</source> | </source> | ||
Line 250: | Line 250: | ||
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-9. | wget https://cran.r-project.org/src/contrib/Rmpi_0.6-9.2.tar.gz | ||
</source> | </source> | ||
Line 263: | Line 263: | ||
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-9.tar.gz | R CMD INSTALL --configure-args="--with-Rmpi-include=$EBROOTOPENMPI/include --with-Rmpi-libpath=$EBROOTOPENMPI/lib --with-Rmpi-type='OPENMPI' " Rmpi_0.6-9.2.tar.gz | ||
</source> | </source> | ||