User guide for installing and using NVIDIA CUDA on Windows Subsystem for Linux (WSL) 2.
This guide explains how to install and use NVIDIA CUDA on WSL 2. It covers installing the NVIDIA driver, setting up WSL 2, and configuring a Linux development environment. It also details supported software versions and limitations for GPU-accelerated computing on WSL.
The guide is designed for developers who want to use CUDA on Windows with Linux compatibility, enabling seamless GPU acceleration for machine learning and data science without dual-booting or traditional virtual machines. This manual is written in Chinese.
| NVIDIA Windows Driver | Latest x86 production driver, R495 and later |
|---|---|
| Docker Support | Supported |
| CUDA Toolkit | Preview Support |
| RAPIDS | 22.04 or later 1.10 - Experimental Support for single GPU |
| NCCL | 2.12 or later 1.4+ |
WSL 2 is a virtual machine with a Linux kernel that allows running Linux applications directly on Windows with full compatibility and performance improvements.
No, do not install any Linux display driver in WSL. Only install the NVIDIA Windows driver.
Install the latest NVIDIA Windows driver (R495 or later) and ensure WSL 2 is installed and updated.