Windows Insider Program and WSL - Windows Subsystem for Linux

Back to Index

To enable all the features for WSL to work with CUDA, you need to be an Insider. WSL is still experimental, so the Insider updates of Dev Channel. You can watch this video  from 05:55 to see the steps of  in advance.

I was really angry when I first installed theses gigantic updates and my desktop became slow, despite the SSD, that I recover my system following this tutorial. Since it is in Portuguese, I'll translate it at the bottom of the page.

Only after a couple reboots, I could see I was out of the Insider Program. However, I needed to go back because the WSL was not installing CUDA properly. 

So, after minor updates and several reboots to have my system working fast as before, I faced an error to install the WSL kernel update (that's my luck). But it was easy to solve. The solution was in this tutorial from Microsoft, specifically on Step 4. You can follow it from the beginning.

After finishing the WSL installation, I checked the following outputs of the commands on PowerShell, or Windows Terminal:
  • wsl cat /proc/version 
    • Linux version 5.10.16.3-microsoft-standard-WSL2
  • wsl --list
    • Ubuntu-20.04 (Standard)
  • wsl --set-default-version 2
    • This must take several minutes, no matter how powerful your PC is. If it doesn't, the kernel update may not be installed properly. 
  • wsl -l -v 
    • * Ubuntu-20.04    Running         2
  • wsl --shutdown
    • * Ubuntu-20.04    Stopped         2

In the Ubuntu terminal, check if the path /usr/lib/wsl/lib/ exists. If it doesn't, then there is no way CUDA Toolkit will work on WSL. Probably an update is missing, or you need to reinstall WSL, or just reboot, or turn off the PC, cool your mind and go back.




Translation of how to get out of the Insider Program:

To go back to your previous system, follow the steps below:

  1. Press Windows+i;
  2. Click on Update and Security;
  3. Click on Recover;
  4. Find the option Go back to previous Windows version.
  5. Click in Introduction and follow the steps.
Or, reinstall Windows 10.

(Probably reinstalling Windows will properly remove the Insider updates, so be midfull of your decision to go in.)

No comments:

Post a Comment

Global Game Jam 2024

Wow, what a weekend. The Global Game Jam is intense. But I and 3 other members manage to build a game for the theme "Make me laugh&quo...