What is the difference between OpenCL and OpenGL's compute shader?

后端 未结 2 1589
小鲜肉
小鲜肉 2021-01-30 12:42

I know OpenCL gives control of the GPU\'s memory architecture and thus allows better optimization, but, leaving this aside, can we use Compute Shaders for vector operations (add

2条回答
  •  Happy的楠姐
    2021-01-30 13:01

    Look here for another perspective. Summarizing:

    Yes, OpenCL already existed, but it targets heavyweight applications (think CFD, FEM, etc), and it is much more universal than OpenGL (think beyond GPUs... Intel's Xeon Phi architecture supports >50 x86 cores).

    Also, sharing buffers between OpenGL/CUDA and OpenCL is not fun.

提交回复
热议问题