Skip to content

Rmpi and OpenMPI

3 messages · Arash Fard, Hao Yu, Martin Morgan

#
Rmpi may not be installed properly. During installation, check if you get
the flags -DMPI2 and -DOPENMPI. The first flag indicates MPI 2 is
supported. The second flag indicates that Rmpi finds OPENMPI mpi.

In your case, probably -DMPI2 is missed and MPICH is chosen. Try install
Rmpi with --configure-args=--with-mpi=/mpipath. Make sure to modify R to
include a line at beginning like
LD_LIBRARY_PATH=/usr/lib64/OMPI/gnu/

Hao
Arash Fard wrote:

  
    
#
Hi Arash --

In terms of diagnosis, probably during your installation Rmpi decided to 
not set the -DMPI2 directive.

In terms of solution, it likely involves inspection of Rmpi/configure.ac 
to understand why this is not set, followed either by setting 
appropriate environment variables or editing configure.ac then cd Rmpi/ 
&& autoconf && cd .. and then R CMD INSTALL --clean Rmpi.

Martin
Arash Fard wrote: