hardware processing difference between OpenCL and OpenGL

hi,

As i anderstoud OpenGL and OpenCL use différent driver to process their command on GPU and I wonder how the GPU procees those command. Is there a pin for OpenCL command and a pin for OpenGL command ?

So openCL will use a spécific part of the GPU and OpenGL another part of the GPU. I ask this because OpencL work with matrice and openGL work with vector except is i use compute shader and image.

But using OpenGL it is hard to retreive data to CPU. So i conclude that their are two différent part in the GPU.

Could someone explain how it work on the porocessor.

thanks.

Parents
  • There aren't dedicated parts of the GPU for OpenCL vs OpenGL - they can both use the shader cores / memory etc, and the drivers will use all the shader cores they need, so if the processing is large enough that it can use all the cores, then the OpenCL & OpenGL workloads will most likely go one after the other.

Reply
  • There aren't dedicated parts of the GPU for OpenCL vs OpenGL - they can both use the shader cores / memory etc, and the drivers will use all the shader cores they need, so if the processing is large enough that it can use all the cores, then the OpenCL & OpenGL workloads will most likely go one after the other.

Children
  • thanks,

    But the diuble time processing appends also when using only OpenCL. For exemple using OpenCL alone after 60/100 frames i can go from 63ms per frame to 100ms. Using OpenCL and OpenGL it is from 63ms to up to 200ms.

    In this case it isnt a problem of core used. So, it loock like this could be comming fron some where else. It is just my analyze. That is why i asked thequesion. 

    By the way when GPU start to slow donw the CPU pocesing is also slowing. It look more like mémorie acces problem or heat problem after 60/100 frames.

  • i did some test today and i foud out that the problem come from the masive use of multicore threading and big data processing. But no idéa why this slow donw the GPU.