Skip to content

R with MPI

3 messages · polemon, Martin Morgan

#
Hi Polemon --
polemon wrote:
This is a configuration error, try install.pacakges("Rmpi",
dependencies=TRUE, configure.args="--with-mpi=/folder/with/mpiheaders").
More below
rsprng is listed as 'Suggests' for both Rmpi and snow, so don't need to
be installed for successful Rmpi or snow installation.

Your message in the next post is that
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared library '/opt/R/lib64/R/library/Rmpi/libs/Rmpi.so':
  libmpi.so.0: cannot open shared object file: No such file or directory
Error in library(Rmpi) : .First.lib failed for 'Rmpi'
Error in dyn.unload(file.path(libpath, "libs", paste("Rmpi",
.Platform$dynlib.ext,  :
  dynamic/shared library '/opt/R/lib64/R/library/Rmpi/libs/Rmpi.so' was not
loaded


This is a run-time error, and is because your mpi installation has not
registered the location of the shared object libraries (or has not been
compiled as a shared object?) correctly. See the system command
'ldconfig', or as a workaround launch R with something like

  LD_LIBRARY_PATH=/path/to/libmpifolder R

I'm guessing that path is /usr/lib64/openmpi/1.2.7-gcc/lib, but I didn't
look carefully enough at your solution to installing Rmpi to know for sure.

For more help, try the R-sig-HPC mailing list, for instance Hao Yu's
response to this

  https://stat.ethz.ch/pipermail/r-sig-hpc/2009-August/000329.html

thread.

Martin