Skip to content
Prev 1455 / 2152 Next

GPU Computing

On Aug 22, 2012, at 12:45 PM, "M. Edward (Ed) Borasky" <znmeb at znmeb.net> wrote:

            
I had no trouble getting OpenCL working on pretty much all machines I have been testing. Obviously, on Macs it is the easiest as it comes pre-installed with the system so it just works. I don't use Windows so I can't comment on that one, but Linux (Debian and Ubuntu) it was still easy - the API comes as open-source with the distribution, so the only thing you need is the libOpenCL.so from your vendor - which was just one download that you don't even have to install (i.e., you don't need to set any special env vars or so). I grabbed just a random version, and didn't need to upgrade drivers.

That said, using random GPUs won't do you any good with R - the performance of regular "consumer" GPUs is horrible with double-precision arithmetics (even more so with mobile GPUs). Also they are not much faster compared to modern CPUs (other than for very specific class of problems that can be hand-tuned to a particular GPU and its hardware specifics, but I don't consider that realistic use for data analysis). The only serious benefit is with modern GPUs that are geared specifically at HPC (like Teslas etc.) - they can really blow CPUs out of the water, but they have an appropriate cost. So even though you can run GPU code on random hardware as a first-class citizen, it won't help you solve a problem.

Cheers,
Simon