5 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 easier to
by mistercow 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.
- mcpherrinm 13y agoI think the closest you'll get right now is something like THREE.js that builds shaders for you out of a high level graphics API.
- mistercow 13y agoThat seems to me actually further than just writing the GLSL shaders yourself. I suppose the MVP would be a library that simply eases getting data in and out of webgl.
- 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.
- dagw 13y agoI know I have seen such a project on github once, but for the life of me I can't find it right now.
- vilya 13y agoHow about WebCL? http://www.khronos.org/webcl/ http://www.khronos.org/webcl/