PDA

View Full Version : cuda with opengl



Nithin
05-23-2017, 01:48 PM
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.....

Dark Photon
05-24-2017, 06:25 AM
Your best source of information is going to be NVidia CUDA (https://developer.nvidia.com/cuda-zone) 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.