PDA

View Full Version : Asynchronous transfer between CPU and GPU



WatchAndLearn
09-25-2011, 11:47 PM
Hi:
I bind two PBOs at once, and one is used to asynchronously read back texture from GPU to PBO, while another asynchronously upload another texture from PBO to GPU. Does these two asynchronous transfer process execute concurrently?
Well another question: when I upload/read back data to/from GPU, could I use GPU to render in this time?That is, does the rendering and data transfer concurrently happen on the same GPU?
many thanks for your help :)

DrRClavan
09-26-2011, 12:04 AM
AFAIK they will not run concurrently.

Bruce Wheaton
09-28-2011, 10:04 PM
It depends on your definition of concurrently. They both happen asynchronously, so some calls will return immediately, and the GPU will deal with them in order, like all requests. You can keep issuing GL commands after that, and they will all happen in the order they were queued. In other words - you and your CPU can carry on with whatever.

Concurrently? No, there's probably only one transfer unit, but it may seem concurrent to you and your code.

Bruce

Nicolas Lelong
10-23-2011, 02:47 PM
For the sake of completeness, the answer is hardware dependent : NVidia advertises that Quadro hardware can do some actual parallel transfers while rendering is performing. See :
http://www.nvidia.com/docs/IO/40049/Dual_copy_engines.pdf