Re: [R] Mathematica now working with Nvidia GPUs --> any plan for R?

From: Peter Dalgaard <>
Date: Wed, 19 Nov 2008 17:30:10 +0100

Stefan Evert wrote:
> On 19 Nov 2008, at 07:56, Prof Brian Ripley wrote:

>>> I just read an announcement saying that Mathematica is launching a
>>> version working with Nvidia GPUs. It is claimed that it'd make it
>>> ~10-100x faster!
>> Well, lots of things are 'claimed' in marketing (and Wolfram is not
>> shy to claim).  I think that you need lots of GPUs, as well as the
>> right problem.

> Which makes me wonder whether R would be able to make use of this
> processing power, since the figures claimed by Wolfram are very probably
> for single-precision floats? (Am I right in thinking that R only works
> with double precision?)
> According to the nVidia Web site, the Tesla architecture is _ten times_
> slower for double-precision operations than for single-precision, which
> makes it seem far less amazing than at first sight.

It wouldn't be rocket science to add a single-precision data type to R, it is just a large amount of work to get all details right, and noone has found it worth the trouble.

Probably more of a stumbling block is that GPUs traditionally have had a rather cavalier attitude to floating-point standards. We have had our share of problems with compilers that breaks the rules (or users setting flags like -fast-math that allow rule breakage), and ensuing breakage of user code and/or "make check", so I don't think it is viable to try and get the GPU to take on all of R's computations. Special-purpose computation, e.g. an R package interfacing to "" or whatever, is always a possibility, but that really goes without saying.

   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (              FAX: (+45) 35327907

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 19 Nov 2008 - 16:40:08 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Nov 2008 - 01:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive