3 ms·
Anybody aware of anything remotely similar for OpenCL?
by T_S_ 15y ago
Anybody aware of anything remotely similar for OpenCL?
- marshray 15y agoOpenCL looks like a generalization of the OpenGL shader language GLSL. The logistics of passing buffers and controlling execution should be very similar as well. I think if you learn OpenGL 3.3 (as in this tutorial), you'll get enough of the common stuff down that you can fill in the missing spots from OpenCL reference material directly.
- pmjordan 15y agoI'm only just getting into OpenCL (I already know OpenGL very well) and I'd say OpenCL's programming language is closer to C than to GLSL. In any case, I'd say the hard part is parallelising your algorithms, understanding the memory model (private vs local vs constant vs global pointers) and using it and the the task dispatch mechanism effectively. Being experienced with OpenGL (or Direct3D, or game console) shaders will probably help for performance tweaking as the mindset is similar (memory access is evil, irregular memory access more so), but other than that I doubt it will help.