CUDA Parallel NSight Debugging host and device simultaneously

偶尔善良 提交于 2019-12-20 06:26:36

问题


Does anyone know if its possible to Debug CUDA using parallel NSight on a remote machine? I am able to step into CUDA code but not my host code. It says CUDA has the capability to generate host debug information so debugging remotely and locally should be possible. My card is a 580 GTX.

//device code <-- able to debug device code
//host code   <---- when device code returns, should be able to debug host code

Thanks!


回答1:


Simultaneous GPU/CPU debugging from a single IDE instance is unfortunately not possible with the current releases of Nsight and Visual Studio.

As a workaround, you can start GPU debugging from one copy of Visual Studio, then open a second IDE instance and attach its CPU debugger. They won't have unified stepping, but you can at least set breakpoints independently.




回答2:


It should now be possible to attach both the Visual Studio default debugger and NSight in the same VS instance. Then this should work.



来源:https://stackoverflow.com/questions/13686119/cuda-parallel-nsight-debugging-host-and-device-simultaneously

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