CUDA Parallel NSight同时调试主机和设备 [英] CUDA Parallel NSight Debugging host and device simultaneously

查看:153
本文介绍了CUDA Parallel NSight同时调试主机和设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如果它的可能调试CUDA使用并行NSight在远程机器上?我可以进入CUDA代码,但不是我的主机代码。它说,CUDA有能力生成主机调试信息,所以远程调试和本地应该是可能的。
我的卡是580 GTX。

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

谢谢!

推荐答案

不幸的是,目前的Nsight版本不能同时执行单个IDE实例的GPU / CPU调试和Visual Studio。

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

作为解决方法,您可以从Visual Studio的一个副本启动GPU调试,然后打开第二个IDE实例并附加其CPU调试器。他们不会有统一的步骤,但你至少可以独立设置断点。

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.

这篇关于CUDA Parallel NSight同时调试主机和设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆