NumbaPro on Cuda device over ssh connection

后端 未结 1 1131
野性不改
野性不改 2021-01-23 23:58

I\'m using Python/NumbaPro to use my CUDA complient GPU on a windows box. I use Cygwin as shell and from within a cygwin console it has no problems finding my CUDA device. I tes

相关标签:
1条回答
  • 2021-01-24 00:09

    The primary cause of this is Windows service session 0 isolation. When you run any application via a service which runs in session 0 (so sshd, or windows remote desktop, for example), the machines native display driver is unavailable. For CUDA applications, this means that you are get a no device available error at runtime because the sshd you use to login is running as a service and there is no available CUDA driver.

    The are a few workarounds:

    1. Run the sshd as a process rather than a service.
    2. If you have a compatible GPU, use the TCC driver rather than the GPU display driver.

    On the secondary problem, the Python runtime error you are seeing comes from the multiprocessing module. From this question it appears that the root cause is probably the NUMBER_OF_PROCESSORS environment variable not being set. You can use one of the workarounds in that thread to get around that problem

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