I tried to debug my CUDA application with cuda-gdb but got some weird error.
I set option -g -G -O0 to build my application. I could run my program without
-g -G -O0
This is internal cuda-gdb bug. You should report a bug.
cuda-gdb
Can you try installing CUDA toolkit from the package on NVIDIA site?