How to Run a cuda code using remote Desktop?

后端 未结 8 1790
醉梦人生
醉梦人生 2020-12-06 16:40

I am connecting to my desktop which has an Nvidia card (CUDA compatible) using remote desktop connection.

I am doing this because I currently don\'t have a monitor!

相关标签:
8条回答
  • 2020-12-06 17:26

    Indeed the Remote Desktop application doesn't allow you to access the graphics card at all, which is done for speed considerations: the device you're connected to doesn't do the rendering, the device you connect with (in your case a laptop) does this. As a result, CUDA programmes suddenly don't see any CUDA enabled device and return all sort of strange stuff. (I found that my test programmes don't always just return 0 for the device count, but all sort of random data, and so does cudaGetDeviceProperties.

    A perfect, free, cross-platform, and in my opinion much better alternative I found is LogMeIn. With this application, the rendering is all done on the device you're connected to, and basically a screenshot is sent over the network every frame. So in short: it works like you would expect a remote desktop to work.

    0 讨论(0)
  • 2020-12-06 17:28

    You may use rCUDA .

    http://www.gap.upv.es/rCUDA

    The rCUDA Framework enables the concurrent usage of CUDA-compatible devices remotely.

    rCUDA employs the socket API for the communication between clients and servers. Thus, it can be useful in three different environments: Clusters. To reduce the number of GPUs installed in High Performance Clusters. This leads to increase GPUs use and to energy savings, as well as other related savings like acquisition costs, maintenance, space, cooling, etc. Academia. In commodity networks, to offer access to a few high performance GPUs concurrently to many students. Virtual Machines. To enable the access to the CUDA facilities on the physical machine.

    0 讨论(0)
  • 2020-12-06 17:32

    You can install Nvidia Driver v353.06 and use CUDA over RDP. It works for me and my GTX 680 on Windows 7 x64.

    0 讨论(0)
  • 2020-12-06 17:33

    You cannot do that as the display is not connected to the video card when using remote desktop.

    0 讨论(0)
  • 2020-12-06 17:34

    I use Windows Remote Desktop to connect to Amazon's HPC instances. I can run CUDA-based code there without problem. So, it is technically possible to access GPU's through a Windows Remote Desktop connection. I have no idea what Amazon is doing differently.

    0 讨论(0)
  • 2020-12-06 17:38

    As far as I know there is no way to use cuda with remote desktop.

    Remote desktop does not allow to access your graphics card. It works more like a visual remote shell. Remote desktop is simply told what gui elements are visible. The rendering takes place on your laptop.

    Something like VNC or TeamViewer might work because VNC actually sends what is on the screen.

    0 讨论(0)
提交回复
热议问题