I am trying to create a MFC application in which I can open image and run various image-processing algorithms - sort of a mini-photoshop.
If I want to open multiple images, I need to create multiple OpenGL contexts - one for each window/image.
Can I do that using CUDA? I am trying to use the OpenGL PBO.
Currently, my first image opens and runs fine, but when I try to open another image, creating the PBO fails and crashes the program.
What might be a better way, if there is one?
The Programming Guids states “A CUDA context may interoperate with only 1 Direct3D device…”, but it does not talk about any such limit on the OpenGL notes.
Interestingly I can run multiple instances of my application without any problems. But if I try to open a new OGL window in one of those apps, it crashes.
It crashes when I try to register my PBO object using -