Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Is it possible to use the GPU for calculations? (e.g. CUDA/OpenCL)

share|improve this question
add comment

3 Answers 3

up vote 41 down vote accepted

At the moment your best bet is to implement your computation as a fragment shader in GLSL ES and find a way to represent the output as a RGBA (32-bit) texture.

Eben states in this talk that OpenCL is not likely to be implemented, but that there may be an API developed in the future; the answer starts at 21:20, and Eben says "we may provide some way for people to get some of that general purpose compute out".

share|improve this answer
5  
AFAIK that talk is the most definitive answer so far... the answer starts at 21:20, and Eben says "we may provide some way for people to get some of that general purpose compute out" –  je4d Jun 12 '12 at 22:31
4  
Some of the GPU code has been opensourced! github.com/raspberrypi/userland –  John La Rooy Oct 25 '12 at 0:14
add comment

Not at present - there is only a framebuffer interface for display purposes. There is no OpenCL and no plans for it nor is there documentation available to create OpenCL. CUDA is Nvida only so isn't applicable. Once an OpenGL driver becomes available you may be able to engineer some calculations via the GPU but how useful that will be remains to be seen.

Check out this detailed thread on the RPi forum: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=33&t=6188

share|improve this answer
add comment

You can, if you can find an technology/api to implement it

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

8  
This isn't very helpful –  Alex L Dec 19 '12 at 8:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.