2 ms·
> >basically using graphics rendering pipeline to do GPGPU without need for OpenCL / CUDA > It would be really cool to see a project that would make that easie
by exDM69 13y ago
> >basically using graphics rendering pipeline to do GPGPU without need for OpenCL / CUDA
> It would be really cool to see a project that would make that easier to do in JS more generally. Basically a similar idea to Parakeet or Numba, but with GLSL as a target.
The problem with doing this on WebGL (which is essentially GLES2) is that the internal precision of the pipeline is not required to be a full 32 bit float. There are 10 bit integers and 20 bit floating point numbers and all sorts of funny number formats in the hardware. When most scientific/numeric computation is done in 64 bit double precision, going to less than 32 bits is a problem.
Of course it still could be done in WebGL, the problem is that running it on different hardware would yield different results. If this is acceptable (e.g. image processing where bit-accurate results are not required), then why not.