Hello everybody,
I hope you can help me with the question which I was not able to find via Google:
I have the Optimus video card: NVIDIA GeForce 540m. And I use it under Ubuntu 12.10 x64 via optirun (Bumblebee) to develop CUDA applications. Unfortunately, I am not able to debug device code using nsight or cuda-gdb. Somehow, the device code is skipped and I always see the last line without when all threads were finished.
The link ([url]CUDA 5 Debugging Mode - CUDA Programming and Performance - NVIDIA Developer Forums) says that I need two GPUs, but with Optimus both GPUs are available: NVIDIA and Intel. IDE or debugger, I launch like that:
nvcc -g -G application.cu -o cudaApplication
optirun nsight # or
optirun cuda-gdb cudaApplication
So, you see that I generate debugging symbols, but cuda-gdb says that they are not available.
If possible, please share your experience with me. Is it possible to debug applications using my configuration, because even for Visual Studio the same approach does not work. Maybe I need to install development version of drivers, or configure my Linux somehow, or even the debugging process without TWO NVIDIA cards is impossible.
However, printf works fine, but if cuda-gdb is available, it probably works on somebody’s machine :)
If you need more information about my system, please tell me, because I am struggling with the issue…
Thank you in advance,
Vest