Hi all… I am new to CUDA. I tried to use the OpenGL functions in CUDA Device function. Its giving error
calling a host function from device/global function is not allowed.
I tried to compile the program with nvcc program.cu -arch=sm_20 . Then also its showing same error. Can any one please give a sample code describing how to use OpenGL functions in CUDA ?