CUDA + OpenGL on two GPUs

Hi,
I want to run OpenGL code on one GPU, capture its output video and analyse it on another GPU.
Does anyone know the best methods to use for this interface?
Best regards, David Jones

I would recommend reading back the image data to the host (using pinned memory), and overlapping the transfers. There aren’t any direct peer-to-peer transfers in CUDA yet.