问题
I have CUDA 4.1 SDK with Parallel Nsight 2.1 installed on Win7 x64. I want to debug my CUDA kernels, how to do this? Is this possible with one GPU? There is a utility Nsight Monitor. I have tried it, first disabled Timeout Detection and Recovery on Windows, and disable WPF, as Nsight monitor told me. I set a breakpoint in VS, run the code but nothing happend. Nsight monitor said i am connected. So can i debug in VS or shall i debug in Parallel Nsight? How to? Thanks a million.
回答1:
If you only have one GPU then you cannot do debugging with Parallel Nsight 2.1 since stopping the GPU stops the display (Nsight stops you doing this). With Parallel Nsight 2.2 (release candidate now available) you can now do local debugging with a single GPU.
So you're on the right track (disabling TDR/WPF etc.) but you'll need to update to Parallel Nsight 2.2 to debug with a single GPU.
来源:https://stackoverflow.com/questions/10153668/how-to-debug-cuda-kernels-in-visual-studio-or-parallel-nsight