I've got some sore of a library problem when trying to install Rmpi, having installed openmpi 3.0.0 from source to /usr/local on Ubuntu 16.04.
open mpi seems to be installed correctly, mpirun
--version works
When I try to install Rmpi using this command
sudo R CMD INSTALL ./Downloads/Rmpi_0.6-6.tar.gz --configure-args="--with-Rmpi-type={OPENMPI}"
It compiles fine, and finds the libraries
I am here /usr/local and it is OpenMPI
Trying to find mpi.h ...
Found in /usr/local/include
Trying to find libmpi.so or libmpich.a ...
Found libmpi in /usr/local/lib
checking for orted... yes
checking for openpty in -lutil... yes
checking for main in -lpthread... yes
configure: creating ./config.status
but when it does the load test I get
** testing if installed package can be loaded
*** An error occurred in MPI_Init
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
*** and potentially your MPI job)
I've tried many things but still no luck. How can I track down the error in the connection to mpi?
examples/hello_c.c
– Gilles Gouaillardet Oct 3 '17 at 7:58mpicc hello_c.c; mpirun ./a.out
– Gilles Gouaillardet Oct 3 '17 at 8:11rm -rf /usr/local/lib/openmpi; make install
and try again, that could be some components from a previous install – Gilles Gouaillardet Oct 3 '17 at 8:16