

Ⓘ Note: This is the only device driver you’ll need to install. For this example, we will download the NVIDIA GPU Driver for WSL. You can find these in Install support for Linux GUI apps > Prerequisites. Please refer to the official WSL documentation for up-to-date links matching your specific GPU vendor. Ⓘ Specific drivers are needed to enable use of a virtual GPU, which is how Ubuntu applications are able to access your GPU hardware, so you’ll need to follow this step even if your system drivers are up-to-date. Install the appropriate Windows vGPU driver for WSL Broadband internet connection able to download a few GB of data.Ubuntu 20.04 or higher installed on WSL 2.A physical machine with Windows 10 version 21H2 or higher.Make sure the following prerequisites are met before moving forward: Although the concepts are essentially the same for other architectures, different hardware configurations will require the appropriate graphics drivers and CUDA toolkit. The following steps assume a specific hardware configuration.

Ⓘ Note: If you need more introductory topics, such as how to install Ubuntu on WSL, refer to previous tutorials that can be found here for Windows 11 and here for Windows 10. Familiarity with Linux command line utilities and interacting with Ubuntu on WSL2.A Windows 10 version 21H2 or newer physical machine equipped with an NVIDIA graphics card and administrative permission to be able to install device drivers.How to compile and run a sample CUDA application on Ubuntu on WSL2.How to install the NVIDIA CUDA toolkit for WSL 2 on Ubuntu.How to install a Windows graphical device driver compatible with WSL2.This provides support for GPU-accelerated AI/ML training and the ability to develop and test applications built on top of technologies, such as OpenVINO, OpenGL, and CUDA that target Ubuntu while staying on Windows. While WSL’s default setup allows you to develop cross-platform applications without leaving Windows, enabling GPU acceleration inside WSL provides users with direct access to the hardware. Enabling GPU acceleration on Ubuntu on WSL2 with the NVIDIA CUDA 02:30
