Create Images and Display Them to the Screen?


I want generate images and display them on the screen, all from CUDA. I’m running on a Linux machine (CentOS). I think this requires me to use OpenGL, so I posted on that forum too, but I’m not sure if it really requires OpenGL.

The CUDA Programmer’s Guide has an example with OpenGL, but it doesn’t explain it well, and their example code doesn’t work for me. Does anyone have starter code for this? In order to start, I’d like a simple CUDA program that can generate a simple image and display it on the screen. Can someone send me a pointer for this?

Thank you.

I remember a chapter on this in the book Cuda By Example. Perhaps that would be a starting point for you.