Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道是否可以在远程机器上使用并行 NSight 调试 CUDA?我可以进入 CUDA 代码,但不能进入我的主机代码。它说 CUDA 有能力生成主机调试信息,因此远程和本地调试应该是可能的。我的卡是580 GTX。
//device code <-- able to debug device code //host code <---- when device code returns, should be able to debug host code
谢谢!
遗憾的是,当前版本的 Nsight 和 Visual Studio 无法从单个 IDE 实例同时调试 GPU/CPU。
作为一种解决方法,您可以从 Visual Studio 的一个副本启动 GPU 调试,然后打开第二个 IDE 实例并附加其 CPU 调试器。他们不会有统一的步进,但你至少可以独立设置断点。
现在应该可以在同一个 VS 实例中附加 Visual Studio 默认调试器和 NSight。那么这应该工作。