14

I know this question has been asked and answered before here: Can I use the GPU for calculations?

but there have been a number of developments recently, including a hint that there will be more forthcoming. Does anyone know if this is likely in the next few months - that is, OpenCL on the RPI?

cjm2671
  • 271
  • 2
  • 3
  • 7

3 Answers3

3

officially not, if you follow the Raspberry Pi blog you can notice that exist some ASM Compiler for QPUs (the hearts of GPU of Raspberry Pi), you need compile your ASM code (at register level), if you want to try this method I can recommend this link:

http://rpiplayground.wordpress.com/2014/05/03/hacking-the-gpu-for-fun-and-profit-pt-1/

however, if you want to use OpenCL I fear you need to wait more.

tejonbiker
  • 31
  • 2
3

The Raspberry Pi foundation has been endorsing GPGPU on the Pi since 2014 , shortly after Broadcom released documentation for the QPU units inside the GPU.

An experimental OpenCL compiler was created by Simon J. Hall (the winner of the tightly related 2014 10,000 $ competition to make Quake run acceptably without using the GPU BLOB) : see here.

flakeshake
  • 6,244
  • 1
  • 16
  • 35
0

I see two possible ways to use the GPU, sadly none of them involve OpenCL:

  1. Abuse vertex or fragment sharers for your calculations.
  2. Try installing Android and using RenderScript (Android's own GPGPU language). Though I don't actually know whether the Pi's GPU is supported.