Skip to content

R 2.13.1-patched, vecLib problem on Lion

6 messages · Federico Calboli, Yan Zhou, Berend Hasselman

#
Dear all, 

I have a problem with R 2.31-patched from http://R.research.att.com/. I am using Lion 10.7.1

I did a fresh install of R and I checked that the BLAS library is linked to vecLib. However the following simple code halt on my machine.

	a <- matrix(rnorm(640 * 640), ncol = 640)
	b <- eigen(a)

This should take less than a second. However after an hour R is still halted. I tried a few more times it is reproducible on my machine.

I then built R my self, linked to vecLib, and using Lion's system default tools. The build passed check and the code above runs without a problem.

I am not sure what is wrong here.

The machine I am using is a Mid-2010 MacBook Pro 15", Core i7 2.66GHz.

Does anyone has the same problem or it is that there's something wrong with my machine only?

Best regards,

Yan Zhou
#
On 19 Aug 2011, at 21:06, Yan Zhou wrote:

            
I can reproduce the problem running the code above.

ls -l /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib points to libRblas.vecLib.dylib

F

--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
#
On 19 Aug 2011, at 21:06, Yan Zhou wrote:

            
I'd like to add that after:

cd /Library/Frameworks/R.framework/Resources/lib
ln -sf libRblas.0.dylib libRblas.dylib

the test above runs fine.

F


--
Federico C. F. Calboli
Department of Epidemiology and Biostatistics
Imperial College, St. Mary's Campus
Norfolk Place, London W2 1PG

Tel +44 (0)20 75941602   Fax +44 (0)20 75943193

f.calboli [.a.t] imperial.ac.uk
f.calboli [.a.t] gmail.com
#
I know this workaround. However that links R to the reference Blas. What keep me confusing is that when linking the R-patched from http://R.research.att.com to vecLib, it halts, but the home-built R, linked to the same vecLib, runs fine.

Y
On Aug 19, 2011, at 9:25 PM, Federico Calboli wrote:

            
#
On 19-08-2011, at 22:06, Yan Zhou wrote:

            
I have tried this on my MacBook Air 2011 (1.6Ghz i5, 4Gb memory, 128Gb flash) and Mac OS X 10.7.1
Using R 2.13.1 of 2011-07-08.

The problem occurs when running R 64 bit.
The 32 bit R doesn't have the problem.

Berend
#
On Aug 20, 2011, at 2:09 PM, Berend Hasselman wrote:

            
Em, I tried it for 32 bit too, it runs fine. I guess it may be a linking problem. 

Yan