Skip to content

Install Rmpi as a user of HPC

4 messages · M. Edward (Ed) Borasky, Bjørn-Helge Mevik, semra yalcin

#
Installing Rmpi is tricky. I don't know about RHEL/CentOS/Scientific
Linux, but I had to write a special script to get it to work on
openSUSE 12.1:

https://github.com/znmeb/Computational-Journalism-Server/tree/master/HighPerformanceComputing

Note in particular that I had to set up a configuration file for
OpenMPI as 'root' and I had to install Rmpi using "R CMD install"
after downloading the package from CRAN.
On Fri, Sep 21, 2012 at 10:23 AM, semra yalcin <semra.yalcin at gmail.com> wrote:

  
    
2 days later
#
semra yalcin <semra.yalcin at gmail.com> writes:
(OpenMPI 1.2.8 is quite old.  I think the current version is 1.6.1.)

I've just installed Rmpi on our cluster, running Rocks 6.0 (based on
CentOS 6.2).  We have installed OpenMPI in
/cluster/software/VERSIONS/openmpi-1.6.1.

I did the following to install Rmpi:

Make sure the following variables are set before installing Rmpi or
using it later on:

Add /cluster/software/VERSIONS/openmpi-1.6.1/bin to $PATH
Add /cluster/software/VERSIONS/openmpi-1.6.1/lib to $LD_LIBRARY_PATH
Add /cluster/software/VERSIONS/openmpi-1.6.1/share/man to $MANPATH
Add /cluster/software/VERSIONS/openmpi-1.6.1/include to $CPATH

(We use the Modules package for this.)

Then I started R and installed Rmpi with

install.packages("Rmpi", configure.args = "--with-mpi=/cluster/software/VERSIONS/openmpi-1.6.1")