3
  1. I have a WSL 2 Ubuntu with Anaconda 3 installed in Ubuntu WSL 2.
  2. Then I installed PyCharm in Windows 10.
  3. Then I created an environment for tensorflow-gpu in WSL2.
  4. I installed CUDA and cuDNN in Windows 10.

Now my question is, "How to connect all of them, if at all possible?" I read that WSL 2 is pure Linux Kernal and Tensorflow is faster in Linux than Windows 10.

3
  • 1
    My question is clear. I listed the 4 points. Based on that, I simply want to know how to connect them to run tensorflow-gpu in pycharm which is installed in Windows. Or do I have to install cuda in wsl 2? Nov 23, 2019 at 3:36
  • 5
    GPU isn't accessible in WSL. See this long issue github.com/microsoft/WSL/issues/1788
    – Biswapriyo
    Nov 23, 2019 at 4:10
  • OP was referring to WSL2 which runs a Linux kernel and is different from original WSL which uses syscall translation.
    – lol
    Apr 7, 2020 at 10:23

2 Answers 2

4

Now there is one. You can install a WSL 2, that has CUDA and with it TensorFlow support: https://docs.microsoft.com/de-de/windows/win32/direct3d12/gpu-cuda-in-wsl

Then you can install PyCharm and configure it to to work with WSL: https://www.jetbrains.com/help/pycharm/using-wsl-as-a-remote-interpreter.html#

1

https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq

"In initial releases of WSL 2 hardware access support will be limited, e.g: you will be unable to access the GPU, serial or USB devices." However, adding better device support is high on our backlog, as this opens many more use cases for developers that wish to interact with these devices.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .