We are struggling with an OpenGL/Cuda interoperability issue.
So far, our cuda app creates images and renders to one OpenGL window - this is working fine.
Now, we want to have TWO OpenGL windows, and we want the cuda routines to create two versions of our images, that will appear in the two OpenGL windows. This is where we are stuck!
The 2 OpenGL windows have unique ID’s and only one is active at a time. The whole process of creating and registering the texture buffer object and then rendering to it works fine on one window or the other, but we haven’t found a way for the cuda routines to render to buffers associated with both windows. We need to avoid any costly steps like transferring the images up to the host…
Can someone help with this?