tags:

views:

192

answers:

2

Is there any GPGPU library for iPhone?

+2  A: 

The original iPhone and iPhone 3G support only support OpenGL ES 1.1 fixed-function pipeline and do not provide a programmable pipeline (no shaders) and therefore cannot be used as general purpose computation devices, at least at the OpenGL abstraction layer.

iPhone 3GS and iPod touch 3G support OpenGL ES 2.0 programmable pipeline. However, it looks like there are limitations like lack of antialiased shaders.

Regardless of the support for programmable shaders in 3GS, I don't think the GPU is powerful enough to be used as a general purpose computational engine.

Mehrdad Afshari
You can still do some basic GPGPU stuff even without shaders. It's just extremely painful and limited in capability.
Eric
A: 

The iPhone GPU isn't built for general purpose computation, so hacking it for such features would be very limited and slow at best.

Pre 3GS' even have fixed pipeline chips, which makes computation on them impossible for almost all practical purposes.

Mavrik