Request for WSL 2 drivers
Please provide details about your environment (please complete the following information)
- Nvidia driver version: reported by nvidia-smi
472.12
- GPU Model: GTX 1650 Super
- OS: Ubuntu 21.10 inside WSL 2 running in Win10 21H2
-
I'm willing to participate in testing of new patch version
First of all, let me to explain what is WSL and why I ask for this:
- WSL is Windows Subsystem Linux. A technology to run any Linux distribution inside Windows. WSL 2 is using a custom MS Linux kernel using virtualization technologies.
- Inside the WSL 2 runtime the NVIDIA video card is available from stock. Inside the stock Linux environment you will see this directory with MS stuff:
/usr/lib/wsl
. And inside it you can founddrivers
andlib
. - Here is the content in WSL2-Ubuntu:
-
$ ls -l /usr/lib/wsl/lib
:
-
-r-xr-xr-x 1 root root 141464 Sep 14 05:39 libcuda.so
-r-xr-xr-x 1 root root 141464 Sep 14 05:39 libcuda.so.1
-r-xr-xr-x 1 root root 141464 Sep 14 05:39 libcuda.so.1.1
-r-xr-xr-x 2 root root 828840 Sep 28 21:36 libd3d12.so
-r-xr-xr-x 2 root root 4834848 Sep 28 21:36 libd3d12core.so
-r-xr-xr-x 2 root root 878768 Sep 28 21:36 libdxcore.so
-r-xr-xr-x 1 root root 6175952 Sep 14 05:39 libnvcuvid.so.1
-r-xr-xr-x 1 root root 424448 Sep 14 05:39 libnvidia-encode.so.1
-r-xr-xr-x 1 root root 197528 Aug 19 20:56 libnvidia-ml.so.1
-r-xr-xr-x 1 root root 354816 Sep 14 05:39 libnvidia-opticalflow.so.1
-r-xr-xr-x 1 root root 49668400 Sep 14 05:39 libnvwgf2umx.so
-r-xr-xr-x 1 root root 678392 Sep 14 05:39 nvidia-smi
So you can execute any nvidia/cuda software inside this Linux environment and use all your GPUs from Windows. And to enable full support inside the Linux environment you need to patch not the Windows driver, but the libs inside this Linux environment. More or less like you do with Docker and Flatpak. However, the problem is that the driver here is not the stock Linux version, but a bit different. For example, my version is "472.12"; that corresponds to the Windows driver. And this version doesn't exists in the Linux driver catalog.
However, I feel the structure of the binaries/libraries will be very similar to a real Linux driver. So I request to the developers to install this environment (very easy: in any recent Win10 machine, you can install the WSL environment with just a few clicks), and execute the tools to find the entry points of these drivers.
I hope that we'll see soon this project upgraded with WSL drivers support. Regards.