How to correctly run Cuda toolkit in Ubuntu in the WSL (eventually to be used for YOLO)?

Jacob Bunzel picture Jacob Bunzel · Apr 22, 2019 · Viewed 15.2k times · Source

I followed the tutorial here from the Medium: https://medium.com/@GuruAtWork/setup-fastai-ubuntu-on-windows-10-44ca50b13a9

I was following it well until a MinGW was used for command lines. I am not sure how they went about doing this as the only way I could get nvcc to work is with sudo apt install nvidia-cuda-toolkit. However, this does not seem to complete the same thing as their tool kit is installed as if the exe was just run with Windows. However, that, of course, doesn't work with the Ubuntu. Let me know what you think, thank you.

Answer

Nafis S. picture Nafis S. · Apr 28, 2019

AFAIK it's just not possible right now to do so from WSL. The link from Medium only sets it up for the Git bash prompt, which is not the same as WSL.