How to debug CUDA kernels in Visual studio or Parallel Nsight

核能气质少年 提交于 2020-01-15 04:41:08

问题


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

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