Nsight skips (ignores) over break points in VS10 Cuda works fine, nsight consistently skips over several breakpoints

我怕爱的太早我们不能终老 提交于 2019-12-05 10:48:39

Right click the .cu file in the Solution Explorer, then go to CUDA C/C++ | Device and set Generate GPU Debug Information to Yes (-G0).

Check whether "Enable CUDA Memory Checker" under Nsight is turned off or not. It may allow NSight to stop breakpoints of your CUDA kernel code on Debug mode of VS C++ 2010. At least, it works for me.

In the debug build, are you passing both the -O and the -g options to nvcc? If so, try removing the -O.

Background: This sounds like the kind of problem one gets when trying to debug code that has been optimized by the compiler. During optimization, the compiler changes the code in such a way that some lines of source no longer have any machine code instructions associated with them, making it impossible for the debugger to set breakpoints on those lines.

I have similar issue. Nsight is not stopping at any of the break points. But completes execution.

If i use -G0 as debug info option. It gives an error.

I am using nvidia 2.2.0.1225 with cuda 4.2 and cuda 5 tool kit. With 301.42 graphic driver.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!