Skip to content

Rmpi: -lopa parameter on compiling needed? Works without

1 message · Arne Hendrik Schulz

#
Dear Hao,
after getting some help from Cray directly, Rmpi compiles and works perfectly.
I had to comment out line 3786 in configure, so that there won't be any given parameter.
#PKG_LIBS="-L${MPI_LIBPATH} -lmpich_cray_default64 -lmpl -lopa ${MPI_LIBS}"
Additionally, I had to switch to the gnu-environement and build the C-Code using cc (Cray's own wrapper, cf [1]) instead of gcc. My whole command looks like this:
MAKEFLAGS="CC=cc" R2/bin/R CMD INSTALL Rmpi_0.6-4_cray.tar.gz --configure-args="--with-mpi=$MPICH_DIR --with-Rmpi-type=CRAY" --no-test-load

If you still run into error, you have to build R again using cc, CC and ftn instead of gcc, cpp and gfortran. Nevertheless, my setup worked like this.

Kind regards
Arne


[1] http://docs.cray.com/books/004-2179-001/html-004-2179-001/lymwlrwh.html