Skip to content
Prev 146952 / 398500 Next

x86 SSE* Pointer Favors

Hi Ivo,
On Friday 13 June 2008 12:23:06 am ivo welch wrote:
You will sure find some answers to your questions if you look into 
R-admin.html file under "Building from source" section. Do a search on BLAS 
and you will be presented with some options. Using a bit of R web site search 
on the same keyword will give you even more food for thought.
I use Goto BLAS library and it works great. Usually runs 3 to 30 times faster 
than the stock R BLAS library, depending on your code. Enabling SSE 
instructions in addition while building R (yes, you have to enable them 
explicitly, see man gcc) is possible but does not help much since all maths 
is mostly done in BLAS.

That said, optimized BLAS libraries give most speed increase with older 
processors. Newer crop of multi-core CPUs with large shared caches is much 
more difficult to hand-tune code for. You may want to subscribe to Goto BLAS 
mailing list for an in-depth discussion. ATLAS community is also very helpful 
(I use their code with our AMD CPUs).
R does not have types, everything that does not look like character string or 
an integer is treated as double. All arithmetics are always done in double 
precision.
HTH,
Ivan