From ripley at stats.ox.ac.uk  Tue Jan 29 05:56:19 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 29 Jan 2008 04:56:19 +0000 (GMT)
Subject: [Rd] Problem building R with Intel MKL v10 BLAS
In-Reply-To: <479E50C6.2050906@cimr.cam.ac.uk>
References: <47993905.9000206@mit.edu> <479A03AE.4070107@cimr.cam.ac.uk>
	<479A1492.1010901@mit.edu>
	<alpine.LFD.1.00.0801251824560.9123@gannet.stats.ox.ac.uk>
	<479E50C6.2050906@cimr.cam.ac.uk>
Message-ID: <alpine.LFD.1.00.0801290448060.23305@gannet.stats.ox.ac.uk>

On Mon, 28 Jan 2008, Hin-Tak Leung wrote:

> Prof Brian Ripley wrote:
>> On Fri, 25 Jan 2008, Michael Braun wrote:
>> 
>>> Thanks for everyone's help.  Unfortunately, still no success.  So I took 
>>> the alternate route suggested in section A.3.1.5 of R-admin, and just 
>>> created a symbolic link from libRblas.so to .../libmkl_gf_lp64.so.  I can 
>>> still multiply 2 matrices together in R, so it looks like this is working. 
>>> Can you propose any other test to be sure?
>> 
>> Run 'make check' ... it includes some tests specifically for working BLAS.
> <snipped>
>
> That reminds me of a discussion I had with our IT guy regarding building R 
> 2.5.0 against MKL 8. He had MKL 8.0 against 2.4.x previously and it is
> actually faster than 9.x ; but he was having trouble upgrading to R
> 2.5.0 (with MKL 8).
>
> It turns out that R 2.5.0 added a couple of checks for some
> double-complex BLAS/LAPACK routines (I can't remember which), which are 
> missing in MKL8, so it is a fact that R 2.5.0 won't build against MKL 8 - but 
> will build against MKL 9, and once you have built 2.5.0 against MKL9, you can 
> swap the libraries (somewhat dangerously) to get the speed
> of MKL8 back...
>
> It is not unthinkable that some more checks are added in 2.6.x and
> MKL 10 is not passing them... one needs the result of config.log to be sure.

Looking at the svn logs, the last change to the BLAS configure tests was 
in Nov 2005.

-- 
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] Problem building R with Intel MKL v10 BLAS
Prof Brian Ripley