无法“附加到进程”在Visual Studio 2008中使用Nsight进行调试 [英] Can't "Attach to Process" to debug using Nsight in Visual Studio 2008

查看:823
本文介绍了无法“附加到进程”在Visual Studio 2008中使用Nsight进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Nsight与Visual Studio 2008调试cuda应用程序,因此我打开了附加到进程对话框。我将传输设置为Nsight GPU调试器。我将限定符设置为我的机器的名称(在这种情况下为MONAD)。我看到在可用进程小部件中的进程列表,但他们都是灰色的,如果我点击我的应用程序,它仍然是灰色的,我不能点击附加按钮。

I'm trying to debug a cuda application using Nsight with Visual Studio 2008, so I opened the Attach to Process dialog. I set the Transport to be Nsight GPU Debugger. I set the Qualifier to the name of my machine (MONAD in this case). I see a list of processes in the Available Processes widget, but they are all greyed out, and if I click on my application, it remains greyed out and I cannot click the attach button.

当我构建应用程序时,我确保使用nvcc

When I built the application I made sure to use the -G0 flag when compiling my .cu files with nvcc

推荐答案

编译我的.cu文件时使用-G0标志请确保已按照Nsight Visual Studio Edition 3.0第将调试附加到正在运行的CUDA进程

Please make sure you have set the monitor settings and the environment variables as described in the Nsight Visual Studio Edition 3.0 chapter Attach Debugging to a Running CUDA Process

让我知道这是否有帮助。感谢

Let me know if that helps. Thanks

这篇关于无法“附加到进程”在Visual Studio 2008中使用Nsight进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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