Skip to content
Prev 325 / 919 Next

Centos / Fedora rpm - issue with openblas

Enzo,

I am copying in Tom Callaway from Red Hat (Tom: Enzo wrote to us
privately on the same issue, but this is on the R-SIG-Fedora list).

This is a choice made by Red Hat Software, not by the R Development Core
Team, so there is nothing to change in the R-admin manual. Everything
depends on how you configure R. In the SPEC file that builds the Fedora
RPM, R is configured using the options "--with-blas" and
"--with-lapack", neither of which is the default (and the latter is
quite strongly discouraged). These options cause R to be linked directly
to external blas and lapack libraries.

This has clear advantages for a software distributor like Red Hat. The
blas used by R is the synchronized with the rest of the system. Updates
and bug fixes to blas and lapack apply immediately without needing to
push an update to R.

Something like the previous behaviour could be put in place by adding
the option --enable-BLAS-shlib when R is configured. Then libRblas.so
will be built as before. However, this libRblas will not contain a copy
of the reference blas that comes with R. Instead it will be just be a
stub that redirects BLAS calls to the external BLAS library. (NB You
must also use --enable-R-shlib for this to work, but this is the case
for the Fedora SRPM so not a problem).

This option gives you the best of both worlds. However, such a change
would have to wait until the next major release of R.

Martyn
On Mon, 2014-06-16 at 13:05 +0100, enzo at smartinsightsfromdata.com wrote: