[Rd] boneheaded BLAS questions

Ben Bolker bbo|ker @end|ng |rom gm@||@com
Thu Mar 18 23:12:25 CET 2021


   For what it's worth I eventually got it to build in a hacky way (had 
to add -lopenblaslib manually).  FWIW I *did* RTFM, several times, but 
for whatever reason the standard recipes are not working for me ...

   thanks!
     Ben Bolker

On 3/18/21 7:52 AM, Dirk Eddelbuettel wrote:
> 
> On 18 March 2021 at 09:15, Tomas Kalibera wrote:
> | This is documented in R Admin manual, section A.3, and there is also
> | "configure --help".
> |
> | On my Ubuntu 20.04, using "--with-blas --with-lapack" when a BLAS/LAPACK
> | implementation is installed via "apt" works for me:
> |
> | with libblas3, liblapack3 I get in R via sessionInfo()
> |
> | BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
> | LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0
> |
> | then I install libopenblas0 and get, after re-starting R (not rebuilding):
> |
> | BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
> | LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
> 
> Yes, thank you, that is exactly what I use and recommend too. And ...
> 
> On 18 March 2021 at 09:34, Tomas Kalibera wrote:
> | and to install say MKL, this works for me:
> |
> | apt-get install intel-mkl-full
> |
> | and then:
> |
> | env MKL_INTERFACE_LAYER=GNU,LP64 MKL_THREADING_LAYER=GNU R
> |
> | gives me:
> |
> | BLAS/LAPACK: /usr/lib/x86_64-linux-gnu/libmkl_rt.so
> |
> | This is following documentation in A.3.1.3 of R Admin manual.
> 
> ... which is what the (surprisingly popular, 139 stars) simple two-year old
> script at GitHub has been automated.
> 
>     https://github.com/eddelbuettel/mkl4deb
> 
> I may need to update the recommendation for the two MKL_* variables.
> 
> Dirk
>



More information about the R-devel mailing list