cuda with opengl

I had done an project in opengl and trying to change to cuda … so can any one help to know how to combine cuda and opengl program and can any one give the ubuntu command to run cude with opengl…

Your best source of information is going to be NVidia CUDA documentation, both online and in book form. Yes, you can use CUDA and OpenGL in the same program, but if this is your first go at working in a compute language, you should do some prep reading first.

Another option to consider is using OpenGL Compute shaders. That may give you what you want and avoid locking you to a specific GPU vendor.