On Wed, 8 May 2019 at 04:52, Peter Langfelder <peter.langfelder at gmail.com> 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.R on Fedora uses openblas by default since Fedora 23. In fact, there's a specific package, openblas-Rblas, that provides libRblas.so. $ ll /usr/lib64/R/lib/ total 64544 -rwxr-xr-x. 1 root root 60113776 feb 28 13:37 libRblas.so -rwxr-xr-x. 1 root root 1961880 mar 11 20:37 libRlapack.so -rwxr-xr-x. 1 root root 182304 mar 11 20:37 libRrefblas.so -rwxr-xr-x. 1 root root 3828104 mar 11 20:37 libR.so R reference blas is installed as libRrefblas.so. I?aki
On 08.05.19 09:34, I?aki Ucar wrote:> On Wed, 8 May 2019 at 04:52, Peter Langfelder > <peter.langfelder at gmail.com> 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. > > R on Fedora uses openblas by default since Fedora 23. In fact, there's > a specific package, openblas-Rblas, that provides libRblas.so.AFAIK a single-threaded OpenBLAS is used. When compiling R from source on a CentOS system I have used the configure option '--with-blas="-lopenblasp"' to link with the pthread version of OpenBLAS. cheerio ralf -- Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustra?e 48 14467 Potsdam T: +49 331 23 61 93 11 F: +49 331 23 61 93 90 M: +49 162 20 91 196 Mail: ralf.stubner at daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 Ust.-IdNr.: DE300072622 Gesch?ftsf?hrer: Dr.-Ing. Stefan Knirsch, Prof. Dr. Dr. Karl-Kuno Kunze -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20190508/47c58449/attachment.sig>
On Wed, May 8, 2019 at 9:00 AM Ralf Stubner <ralf.stubner at daqana.com> wrote:> AFAIK a single-threaded OpenBLAS is used. When compiling R from source > on a CentOS system I have used the configure option > '--with-blas="-lopenblasp"' to link with the pthread version of OpenBLAS.Yes, that's the right incantation. Thanks for solving it for me... Peter
On Wed, 8 May 2019 at 18:00, Ralf Stubner <ralf.stubner at daqana.com> wrote:> > On 08.05.19 09:34, I?aki Ucar wrote: > > On Wed, 8 May 2019 at 04:52, Peter Langfelder > > <peter.langfelder at gmail.com> 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. > > > > R on Fedora uses openblas by default since Fedora 23. In fact, there's > > a specific package, openblas-Rblas, that provides libRblas.so. > > AFAIK a single-threaded OpenBLAS is used.Of course it is the serial version. It wouldn't be a good policy to ship a threaded shared library by default.> When compiling R from source > on a CentOS system I have used the configure option > '--with-blas="-lopenblasp"' to link with the pthread version of OpenBLAS.CentOS uses the reference BLAS by default instead. It's a long story. But both CentOS and Fedora configure R with --enable-BLAS-shlib, so you don't need to recompile it to use an optimized version. I?aki