From ripley at stats.ox.ac.uk  Wed Jun 21 19:35:48 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 21 Jun 2006 18:35:48 +0100 (BST)
Subject: [Rd] is.Rs_own_BLAS() ?
In-Reply-To: <17561.33050.570856.455403@stat.math.ethz.ch>
References: <17561.33050.570856.455403@stat.math.ethz.ch>
Message-ID: <Pine.LNX.4.64.0606211829170.31883@gannet.stats.ox.ac.uk>

On Wed, 21 Jun 2006, Martin Maechler wrote:

> Does anyone see a nice portable way to detect --- from inside R ---
> if R is using its own BLAS or not?
> { And ideally, if not, can R find out which ``kind'' of
>  (optimized) BLAS it does run? }
>
> And the same for LAPACK ?
>
> One way of getting a partial answer seems to be
>
> Rs_own_LAPACK_and_BLAS <-
>    list.files(file.path(R.home(), "lib"), pattern = "^libRlapack") > 0
>
> (where I'd be grateful for confirmation from a Mac and a Windows user
>  that the above does work)

Not possible: R on Windows has a plug-in BLAS, and Simon has asked for the 
same on MacOS X.  And the BLAS and LAPACK are DLLs stored in R_HOME/bin, 
not import libraries stored on R_HOME/lib (which no longer exists).

There are even architecture-specific Rblas.dll on CRAN (and have been for 
some years).

Brian

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] is.Rs_own_BLAS() ?
Prof Brian Ripley