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!
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.