using openGL to create a plot (contour-like)

You’ll have to set up interop between CUDA and OpenGL. Here’s what you probably want to do.

create a pixel buffer object (PBO) that will be the texture source
register the PBO with CUDA
for each frame:
map the PBO to CUDA
launch the kernel to process PBO memory
unmap the PBO from CUDA
update the texture associated with the PBO
draw a quad (dimensions same as the data your displaying) with the texture

I have a very ugly Win32 multiwindow app that uses cuda to generate textures for quads. It’s got some very bad windows-programming practices in it, but if you want, drop me a note and I can send the source to you (I don’t want to post it publicly due to the aforementioned ugliness).

Paulius