OpenGL vs. OpenCL, which to choose and why?

OpenCL is created specifically for computing. When you do scientific computing using OpenGL you always have to think about how to map your computing problem to the graphics context (i.e. talk in terms of textures and geometric primitives like triangles etc.) in order to get your computation going.

In OpenCL you just formulate you computation with a calculation kernel on a memory buffer and you are good to go. This is actually a BIG win (saying that from a perspective of having thought through and implemented both variants).

The memory access patterns are though the same (your calculation still is happening on a GPU – but GPUs are getting more and more flexible these days).

But what else would you expect than using more than a dozen parallel “CPUs” without breaking your head about how to translate – e.g. (silly example) Fourier to Triangles and Quads…?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)