Anticipating the inevitable hater, I have to clarify that this article is about a Microsoft technology that runs on Windows 10, but whose name is Windows Subsystem for Linux; note the capital letters. Having explained this, although it shouldn't be necessary, since yesterday WSL has introduced a couple of very interesting new features, one of which is the first step towards making Linux within Windows look a bit more like Linux than it has until now.
To be more specific, no, these new features aren't official; that is, they haven't arrived in the stable version of Windows 10. They were released yesterday as part of Windows 10 Build 20150, specifically to the Fast ring, now called the Dev Channel, for Insiders—those of us with a computer running Microsoft's operating system that's subscribed to the program that allows us to see the new features they're working on before their official release. Of the two features we'll mention in this article, the most notable is the ability to run Linux applications with a GUI in WSL2.
Microsoft and NVIDIA bring CUDA to WSL2
As part of the update, WSL version 2 can now perform GPU-based computing functions , including the use of NVIDIA's CUDA technology. This, along with the new installation command we'll discuss later, was previewed at Microsoft's conference in May.
Microsoft partnered with NVIDIA to deliver an early preview of NVIDIA CUDA for WSL2 ( learn more ), which includes machine learning support for popular ML tools, libraries, and frameworks such as PyTorch and TensorFlow. Microsoft also provides a TensorFlow package with a DirectML backend. Separately, AMD also released a preview of its graphics drivers to unlock DirectX 12 GPU acceleration support within WSL for a significant portion of its Radeon hardware.
wsl.exe -install, the installation command is simplified
The other interesting feature is the new WSL installation and update command. Previously, you had to enter a couple of commands that were practically impossible to remember, but now it will install simply by opening Windows PowerShell and entering the new `wsl.exe --install` . The wait for the installation to complete should be shorter, but the remaining steps, including going to the Microsoft Store and installing a Linux distribution, are the same.
Along with the previous command, they have also introduced the following:
- wsl.exe –update will update the kernel.
- wsl.exe –update –status it will show us the state of the kernel.
- wsl.exe --update --rollback it will allow us to go back to a previous version of the kernel
But this shouldn't be necessary if everything is working correctly and we don't want to revert to a previous kernel version, because updates now arrive via Windows Update, just like any other update that doesn't depend on the Microsoft Store. Today, although many of us still prefer native, traditional Linux, for Insiders, Windows 10 has taken another step closer to Linux.
Table of Contents