R: Difference between revisions

Jump to navigation Jump to search
no edit summary
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.10.7 which is needed to spawn processes correctly; the default Open MPI module 2.1.1 has a problem with this at present.
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.4.0
module load gcc/7.3.0
module load openmpi/1.10.7
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-6.tar.gz
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-6.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.tar.gz  
</source>
</source>


Bureaucrats, cc_docs_admin, cc_staff
2,320

edits

Navigation menu