12

Last June the answer was a qualified no: Can I use the GPU for calculations?

However, the Videocore driver code was open sourced towards the end of 2012: http://www.raspberrypi.org/archives/2221 - does that mean we're now likely to see it happen?

If so, given existing libraries (http://mathema.tician.de/software/pyopencl, http://www.jocl.org/) might already work, but with a CPU implementation, it would seem reasonable to start using them in the hope they'll soon be able to use the GPU.

David Carboni
  • 223
  • 2
  • 5
  • 1
    If someone would like to create "opencl" and/or "gpgpu" tags feel free to re-tag this question. – David Carboni Mar 29 '13 at 11:16
  • Note that it's not accurate to say that "Videocore driver code was open sourced". Only part of it - running on ARM side was (and really important code is running on VideoCore itself and community have no way to do any changes to it). So this may be not enough for such implementation. – Krzysztof Adamski Mar 29 '13 at 11:39

2 Answers2

3

OpenMAX is supported. It does not let you do arbitrary computations on the GPU, but it seems to contain compression and decompression of audio, video and images. This thread is about JPEG decompression with OpenMAX on the Pi.

Here is a list of API:s supported by the VideoCore.

Frepa
  • 2,261
  • 19
  • 17
2

The situtation dramatically changed in 2014 with the official release of documentation on the QPU units in the Pi GPU. The blog featured several GPGPU projects after that. Since then , the number of Pi GPGPU projects has risen.

See for example "GPGPU python library for the Raspberry Pi" : https://github.com/nineties/py-videocore

flakeshake
  • 6,235
  • 1
  • 14
  • 33