NVIDIA's CUDA computing platform is now available on WSL
With the latest version of Windows 10 Insider Preview released on June 17, 2020, 'Build 20150',
Announcing CUDA on Windows Subsystem for Linux 2 | NVIDIA Developer Blog
https://devblogs.nvidia.com/announcing-cuda-on-windows-subsystem-for-linux-2/
WSL1 provided Linux applications via a program called 'LXCore', so some Linux applications could not work. On the other hand, from the latest version of WSL2, it is possible to run most Linux applications by running an actual Linux kernel on Hyper-V . With WSL2 and GPU paravirtualization technology 'GPU-PV', GPU calculation on WSL such as DirectX support was realized.
To enable CUDA with WSL, you must first install the latest version of Windows 10 Insider Preview, 'Build 20150', on a PC with NVIDIA's GPU. In addition, it is necessary to install NVIDIA's
Below is how
In addition to CUDA support by WSL,
An image of N body simulation executed on Docker container on WSL is also released, and you can see the red letters ``GeForce GTX 1070'', so you can see that the GPU is passed through from the host OS to WSL and Docker container I will.
You can check the source code of the Linux kernel for WSL2 in the preview stage including the dxgkrnl driver from the following.
microsoft/WSL2-Linux-Kernel at linux-msft-wsl-4.19.y
https://github.com/microsoft/WSL2-Linux-Kernel/tree/linux-msft-wsl-4.19.y
Related Posts: