CUDA调试-Windows工作站上的VS,Linux服务器上的GPU? [英] CUDA Debugging - VS on windows workstation, GPUs on Linux server?

查看:373
本文介绍了CUDA调试-Windows工作站上的VS,Linux服务器上的GPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在工作站上进行编码时在服务器上调试CUDA代码方面有经验吗?

Has anyone had any experience debugging CUDA code on a server while coding on a workstation?

我的笔记本电脑(Thinkpad T400)不支持CUDA,但是我有可以访问具有一对运行Linux的NVIDIA GTX 295卡的服务器。

My laptop (Thinkpad T400) doesn't support CUDA, but I have access to a server with pair of NVIDIA GTX 295 cards that runs Linux.

我可以使用NVidia的Visual Studio工具在服务器上进行远程调试吗?

Can I use NVidia's Visual Studio tools to debug remotely on the server?

如果没有,我的笔记本电脑上还会运行Ubuntu VM。我可以在Linux下使用调试器在服务器上进行调试吗?

Failing that, I also have an Ubuntu VM running on my laptop. Is there a debugger that I can use under Linux to debug on the server?

我真的不想购买另一台带有双NVidia卡的笔记本电脑。

I really don't want to have to buy another laptop with dual NVidia cards.

推荐答案

在远程linux机器(例如您的服务器)上用c开发非常普遍。您可以从任何客户端(例如您的笔记本电脑)将ssh放入服务器以编译和运行代码,就像坐在计算机上一样,并且可以使用 gdb 可以在终端中调试代码。您还可以使用 ddd 作为gdb或linux IDE(例如 eclipse 。

Developing in c on a remote linux machine (like your server) is quite common. You can ssh onto the server from any client (like your laptop) to compile and run the code just as you would if you were sitting at the machine, and you can use gdb to debug your code in a terminal. You can also use ddd as a graphical front end to gdb or a linux IDE such as eclipse by forwarding X11 over ssh.

您可以使用 cuda-gdb 在终端中以完全相同的方式调试CUDA代码。不幸的是,还没有用于Linux的可视cuda调试器。但是,看来您可以将ddd与cuda-gdb [source] 一起使用您有两个GPU。我不确定在日食中使用cuda-gdb

You can use cuda-gdb to debug your CUDA code in a terminal in exactly the same way. Unfortunately, there is not a visual cuda debugger for linux yet. However, it appears you can use ddd with cuda-gdb [source], as you have two gpus. I'm not sure about using cuda-gdb in eclipse.

这篇关于CUDA调试-Windows工作站上的VS,Linux服务器上的GPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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