Hi all… I am trying to execute a sample program given in CUDA Programming guide for OpenGL interoperability with CUDA. I compiled the program with
nvcc new.cu -lGL -lglut -lGLEW -lGLU
I attached the program here. Its compiled successfully with out errors. But it giving Segmentation fault (core dumped) whenever i tried to execute it. Can any one please tell why its giving segmentation fault ? Do i have any mistakes in program ?
new.cu (2.45 KB)