[R] Problems using external BLAS
Bjørn-Helge Mevik
b.h.mevik at usit.uio.no
Fri Aug 6 15:12:13 CEST 2010
I have problems building R 2.11.1 with an external BLAS. I've tried
several with several libraries:
# ACML:
export LD_LIBRARY_PATH=/site/VERSIONS/acml-3.6.0/gfortran64_int64/lib
BLAS=--with-blas="-L/site/VERSIONS/acml-3.6.0/gfortran64_int64/lib -lacml"
LAPACK=--with-lapack
# MKL 11:
BLAS=--with-blas="-L/site/VERSIONS/intel-11.1/mkl/lib/em64t -lmkl_gf_lp64 -lmkl_sequential -lmkl_lapack -lmkl_core"
LAPACK=--with-lapack
# MKL 8.1, trad. way:
BLAS=--with-blas="-L/site/intel/cmkl/8.1/lib/em64t -lmkl -lvml -lguide -lpthread"
LAPACK=--with-lapack
I configure R like this:
export CFLAGS="-O3 -mtune=opteron"
export FFLAGS="-O3 -mtune=opteron"
export CXXFLAGS="-O3 -mtune=opteron"
export FCFLAGS="-O3 -mtune=opteron"
./configure --prefix="/site/VERSIONS/R-2.11.1" \
"$BLAS" "$LAPACK" \
--enable-R-shlib
In all cases, I get
configure:29120: checking whether double complex BLAS can be used
configure:29206: result: no
The conftestf.f and conftest.c seem to compile fine, but exit status
from conftest in line 29181 of configure is nonzero.
This is on a Quad-Core AMD Opteron node running CentOS 5.2, with gcc and
gfortran version 4.1.2 20071124 (Red Hat 4.1.2-42)
(I have also tried without the *FLAGS variables, and without
--with-lapack. The result is the same.)
(We have successfully built older versions of R with MKL 8.1 earlier, but
with intel compilers v. 10.1, using
./configure --prefix="/site/VERSIONS/R-$version" \
--with-blas="-L/site/intel/cmkl/8.1/lib/em64t -lmkl -lvml -lguide -lpthread" \
--with-lapack="-L/site/intel/cmkl/8.1/lib/em64t -lmkl_lapack64 -lmkl" \
--enable-R-shlib
but we wanted to switch to gcc because not all R packages compile with icc.)
Does anyone have any idea about what could be wrong?
--
Regards,
Bjørn-Helge Mevik
More information about the R-help
mailing list