How can I copy OpenGL texture data efficiently to cuda?
Now I use OpenGL Buffers and call glTexImage. However this call takes very long (around 10 msec), so I assume the data is not directly copied but passes by the CPU (even if source and destation format of glTexImage is the same). This is a 1000 times slower compared to a device-to-device copy in CUDA, or even 2 times slower than a host-to-device copy.
So I would like to know if there is a way to copy the texture data from OpenGL directly to cuda on the video card.