From |uc@r @end|ng |rom |edor@project@org  Wed May  8 18:21:13 2019
From: |uc@r @end|ng |rom |edor@project@org (=?UTF-8?Q?I=C3=B1aki_Ucar?=)
Date: Wed, 8 May 2019 18:21:13 +0200
Subject: [Rd] openblas
In-Reply-To: <4172cc6d-afa8-62e6-ec10-28af578d10fd@daqana.com>
References: <CAHHjBM7eRSRnxX7e41EAAV0Zu3tK+nem-c_HGX-2ix0VGu8Bug@mail.gmail.com>
 <CA+hbrhWVM9sL_Sgsf=6HXXMr5XwdbAxOV7S3DDTVD0TPdOeuug@mail.gmail.com>
 <CAHHjBM5_uhvz9MKeSoTdk3MJNy+MzyL_uv1Bbgi4YUbXcXssYw@mail.gmail.com>
 <CA+hbrhWueSWO+sSWSuA7DLRVdyhuxGGScXrUrbU+OeuujwH6+Q@mail.gmail.com>
 <CALEXWq1R1mWBTTaaLbPJ5pgdXn=L6j4GAc00a8yLE80Ebz5Byw@mail.gmail.com>
 <4172cc6d-afa8-62e6-ec10-28af578d10fd@daqana.com>
Message-ID: <CALEXWq2drnPtYCm=p9rSaYx=o=59ZGbo7HvX_fh2ZF5a2CMJ8Q@mail.gmail.com>

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



[Rd] openblas
=?UTF-8?Q?I=C3=B1aki_Ucar?=