edd @end|ng |rom deb|@n@org
Wed May 8 04:59:58 CEST 2019
On 7 May 2019 at 19:43, Peter Langfelder wrote:
| (CCing the R-devel list, maybe someone will have a better answer.)
| To be honest, I don't know how to. I wasn't able to configure R to use
| OpenBLAS using the configure script and options on my Linux Fedora system.
| I configure it without external BLAS, then replace the libRblas.dylib (.so
| in my case) with a link to the OpenBLAS dynamic link library.
We have been doing this for nearly 20 years in Debian. The configure call
when building R is
./configure --prefix=/usr \
[... stuff omitted ...] \
where $(atlas) and $(lapack) these days simply are
atlas = --with-blas
lapack = --with-lapack
(and that used to be different on different architectures a long time
ago). As I recall the --enable-R-shlib is also helpful.
With that we have R using _external_ LAPACK and BLAS allowing us to switch
seamlessly between, inter alia, reference BLAS, ATLAS, OpenBLAS and MKL (see
my blog for the last one). MKL appeared to be marginally faster than OpenBLAS
at a larger installation footprint.
Full details are in this (somewhat sprawling, my bad) file:
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-devel