如何在Linux上使用Nsight 5.5进行远程调试? [英] How to do remote debugging with Nsight 5.5 on Linux?

查看:1032
本文介绍了如何在Linux上使用Nsight 5.5进行远程调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

免责声明:我知道此问题已被多次提出,但在Nsight 5.5之前,答案只是您不能。。

Disclaimer: I know that this question has been asked numerous times, but before Nsight 5.5 the answer simply was "You can't."

我试图在Ubuntu上使用Nsight 5.5调试CUDA程序。远程机器也是一个Ubuntu的CUDA工具包5.5。

I'm trying to debug a CUDA program with Nsight 5.5 on Ubuntu. The remote machine is also an Ubuntu with CUDA Toolkit 5.5.

我使用在远程系统上调试应用程序在NSight中设置调试。
每当我尝试运行应用程序时,我得到无法启动远程主机上的gdbserver错误。

I setup debugging in NSight using the "Debug an application on a remote system". Whenever I try to run the application I get a "Could not start gdbserver on the remote host" error.

这是我在控制台上得到的:

This is what I get on the console:


Last login: Thu Aug  1 16:09:26 2013 from host.whatever.edu
echo $PWD'>'
 :2345 /tmp/nsight-debug/flow;exit
someuser@remotehost:~$ echo $PWD'>'
/home/someuser>
someuser@remotehost:~$  :2345 /tmp/nsight-debug/flow;exit
:2345: command not found
logout

两台机器上都安装了 gdbserver cuda-gdbserver

Both gdbserver and cuda-gdbserver are installed on both machines.

如果我ssh到远程主机,我可以手动运行 / tmp / nsight-debug / flow

If I ssh to the remote host, I can run /tmp/nsight-debug/flow manually.

这里可能有什么问题?

What might be the problem here? Is there anything missing from the setup?

推荐答案

这看起来像Nsight中的一个错误,我们将看看这个问题。

This looks like a bug in Nsight, we will take a look into this matter.

请确保您为您的连接配置了远程工具包。

Please make sure that you have remote toolkit configured for your connection.


  1. 从主菜单中选择运行 - > 调试配置...

  2. 在左侧树中,

  3. 确保远程工具包组合选择了正确的工具包。如果您没有配置任何工具包,请点击管理... 并设置工具包。

  1. From the main menu, select Run -> Debug Configurations...
  2. In the left-hand tree, select you debug configuration under C/C++ Remote Application
  3. Make sure that Remote toolkit combo has proper toolkit selected. If you don't have any toolkit configured, click Manage... and setup the toolkit.

通常你只需要为你的连接设置一次工具包 - 例如如果要调试同一远程系统上的其他应用程序,则不必设置它。

Usually you will only have to setup the toolkit once per your connection - e.g. you will not have to setup it if you want to debug another application on the same remote system.

这篇关于如何在Linux上使用Nsight 5.5进行远程调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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