nsight eclipse remote debugging timed out error

瘦欲@ 提交于 2019-12-20 06:24:55

问题


I have a Server running CentOS 6.0 and I'm trying to use it as a remote host for cuda debugging. In order to do this, I installed cuda-toolkit 5.5 both on the server and my notebook, which is running ubuntu 12.10 OS. I configured the two machines as the NVIDIA-cuda-instruction told me, yet when I started the Nsight eclipse edition and tried to remote debug my cuda applications, I ran into error, whcih says:

Failed to execute MI command:

-target-select remote 192.168.2.105:2345

Error message from debugger back end:

192.168.2.105:2345: Connection timed out

I googled this error, someones says it is a firewall issue and I need to open the port manually, so I modified the /etc/sysconfig/iptables file and add this:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 2345 -j ACCEPT

to open the 2345 port. But it turn out to be of no use. Can anyone give me some suggestion and help me solve this problem?

By the way, I have tested local debugging using nsight eclipse edition on my server, and it works well.


回答1:


I have the same problem in an OpenSuse server. I have managed to make it work by disabling the firewall in the server.

#/sbin/rcSuSEfirewall2 stop

You can start later by

#/sbin/rcSuSEfirewall2 start


来源:https://stackoverflow.com/questions/18173560/nsight-eclipse-remote-debugging-timed-out-error

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