我应该如何在OSX上开发CUDA和在Linux上部署测试 [英] How should I develop CUDA on OSX and the deploy test on Linux

查看:247
本文介绍了我应该如何在OSX上开发CUDA和在Linux上部署测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 我有一个linux盒子连接到我的CUDA机器 - 它有3个GPU卡。

  2. 我在OSX上做所有我的开发

    如何设置我的开发周期,我在笔记本电脑上开发并部署到LINUX盒子?



    我的IDE选择是eclipse,作为备份我使用vi。



    谢谢。

    解决方案

    如果你的Mac确实支持CUDA,那么你应该能够在其上安装CUDA,并在本地进行大部分开发工作。你可以使用像Git或Mercurial这样的版本控制系统将你的代码推送到Linux的所有测试(如果你不想在本地运行CUDA),但是这将使测试小的代码更改慢,因为你



    个人而言,我喜欢直接在目标机器上开发我所有的代码,每当可能。我打开几个SSH会话,并用Vim写所有的代码。这使我可以运行完全测试,只有很少的周转时间。捕获的是你必须始终有一个良好的网络连接到你的测试盒,否则开发将是一个皇家的痛苦。



    因此,总而言之,你有三个选项


    1. 在Mac上编写代码,在Linux上运行所有测试。使用Git或某事来
      push更改。

    2. 在Mac上编写代码,在本地运行基本测试(您必须安装
      CUDA),并偶尔测试Linux。测试通常是
      的效率,但是您可能需要为
      两个平台重做性能优化。

    3. 在Linux上编写代码,通过从Mac打开SSH会话,
      在Vim或任何你喜欢的文字。您需要一个一致的,良好的
      网络连接与Linux盒。如果你有一个梦幻般的
      连接,你可以想象地运行Eclipse从Linux使用X
      窗口共享。


    1. I have a linux box wired up as my CUDA machine -- it has 3 GPU cards in it.
    2. I do all my development on an OSX laptop.

    How should I set up my development cycle where I develop on my laptop and deploy to the LINUX box?

    My IDE of choice is eclipse and as a backup I use vi.

    Thanks.

    解决方案

    If your Mac does indeed support CUDA, then you should be able to install CUDA on it and do most of your development work locally. You could use a version control system like Git or Mercurial to push your code to the Linux box for all your testing (in case you don't want to run CUDA locally), but that will make it slow to test small code changes because you will have to commit and push all changes before they will be available on the Linux box.

    Personally, I prefer to develop all of my code directly on the target machine, whenever possible. I open up a few SSH sessions and write all the code with Vim. This allows me to run full tests with very little turn-around time. The catch is that you must always have a good network connection to your test box, or else development will be a royal pain.

    So, in summary, you have three options.

    1. Write code on Mac, run all tests on Linux. Use Git or something to push changes. Testing small code changes will be a huge hassle.
    2. Write code on Mac, run basic tests locally (you'll have to install CUDA) and occasionally test against Linux. Testing will usually be efficient, but you may need to redo performance optimization for both platforms.
    3. Write code on Linux, by opening SSH sessions from your Mac and writing in Vim or whatever you fancy. You need a consistent, good network connection with the Linux box. If you have a fantastic connection, you could conceivably run Eclipse from Linux using X window sharing.

    这篇关于我应该如何在OSX上开发CUDA和在Linux上部署测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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