wiki:R-MPI_Install

Version 9 (modified by jazz, 16 years ago) (diff)

--

R-MPI

1.What is R-MPI


2.Software Requirement

  • MPI implements
    • mpich2, mpich, LAM/MPI (7.0.2 or higher)
      • For mpich2 installation, please reference here
    • OpenMPI may causes some problem, not for sure.
  • R (2.0.0 or higher)
    • Assuming that your system is ubuntu or you got apt-get commands, you can just install R by :
      root@client-01:~# apt-get install r-base-core
      
  • gcc-4.2
    • As previous step, you can install gcc-4.2 by :
      root@client-01:~# apt-get install gcc-4.2
      

3.Install Rmpi

  • Download for Rmpi from here. The latest version is 0.5-5.
    root@client-01:/opt# wget http://www.stats.uwo.ca/faculty/yu/Rmpi/download/linux/Rmpi_0.5-5.tar.gz
    
  • Assuming that your system have installed R, gcc-4.2 and any one of MPI implements already. Then we can start to install Rmpi as follows
    root@client-01:/opt# R CMD INSTALL Rmpi_0.5-5.tar.gz
    
  • Rmpi have been installed successfully so far.

4.Test for Rmpi

  • Check R-MPI environment which is refernce from here
    # R
    > if (!is.loaded("mpi_initialize")) {
    + library("Rmpi")
    + }
    
  • If you did not install LAM/MPI, you should see this message
    > if (!is.loaded("mpi_initialize")) {
    + library("Rmpi")
    + }
    
            LAM/MPI runtime environment is not operating.
            Starting LAM/MPI runtime environment.
    
  • For more test program, please reference R_note.

5.Reference