GPU Not Found in WSL, CUDA Won't Run? WSL Version, Windows Driver & Toolkit Diagnosis Guide

2026-11-24 | GPU Repair | 34 minutes | HK GPU Fix Editorial Team

GPU Not Found in WSL, CUDA Won't Run? WSL Version, Windows Driver & Toolkit Diagnosis Guide

Key takeaway

When nvidia-smi works in Windows but finds no GPU inside WSL, the fault is usually one of three variables: whether the distribution runs WSL 1 or WSL 2, whether the Windows driver is new enough and the card supported, and whether a Linux NVIDIA driver was mistakenly installed inside WSL. Three comparisons separate the three layers.

Introduction

The pattern is specific and it is the whole diagnosis in miniature. Open PowerShell on Windows, type `nvidia-smi`, and the graphics card is listed with its driver version. Open the Ubuntu distribution inside Windows Subsystem for Linux, type the same command, and the card is not there — or a CUDA program reports that no GPU is available. Nothing was changed on the card itself between the two commands. The card works; the bridge between Windows and WSL does not.

That contrast is the clue, and it is also the boundary of this guide. This article is about one narrow shape: the Windows host sees the card, WSL does not, and the question is which of three variables is responsible — the WSL version, the Windows driver, or something wrongly installed inside WSL. It is not about a card Windows cannot see at all, not about a container that cannot see a card the host can see, and not about a program that sees the card but chooses to run on the CPU instead. Each of those has its own article, and the boundary section near the end says which one.

The mechanism behind the shape is unusual enough that the most natural instinct is the wrong one. In a normal Linux machine, the way to use a graphics card is to install a Linux NVIDIA driver. In WSL, that is exactly what must not be done. NVIDIA's official CUDA on WSL documentation states it in bold: this is the only driver you need to install, referring to the Windows driver, and no Linux display driver should be installed in WSL. The Windows driver exposes itself into WSL 2 as a `libcuda.so` stub, and Linux programs talk to the card through that stub. Install a Linux driver inside WSL and the stub is damaged. That single fact explains most of the failures this guide covers, and it is why the tests in this article are built the way they are: each one isolates one variable — the WSL version, the Windows driver, or what is installed inside WSL — and measures one outcome, whether `nvidia-smi` inside WSL lists the card.

Symptom definition: what counts as this problem

This article covers one narrow shape. All three of the following must be true; if any one is missing, the problem belongs somewhere else.

First, the Windows host itself recognises the graphics card and `nvidia-smi` runs in Windows PowerShell, but inside WSL — Ubuntu or another distribution — `nvidia-smi` reports that it cannot find a device, or a CUDA program reports that no GPU is available. The starting point is the contrast: Windows can, WSL cannot. Two different results from the same card is the entry condition for this article, and test T1 is built on exactly that contrast.

Second, the problem is at the WSL layer, not in the application choosing the wrong device. A speech-transcription tool selecting the wrong device, or PyTorch running on the CPU, is the route in articles #561 and #556. A Docker container that cannot see the card is the route in article #554. A virtual machine with GPU passthrough that cannot see the card is the route in article #204. This article assumes the program itself is fine and asks only why WSL cannot see the card at all.

Third, "cannot find the card" must be measurable, not a feeling. `nvidia-smi` in Windows PowerShell produces output listing the card; `nvidia-smi` inside WSL produces no output, or an error, and that difference is the evidence. This article does not cover "AI runs slowly inside WSL" — slowness is a different layer, covered by the articles on data pipelines and model size listed in the boundary table.

These three shapes need to be kept apart because each is measured differently. A host that cannot see the card at all is the route in articles #106, #154, and #367. A container that cannot take the card is the route in article #554. A model that loads but runs on the CPU is the route in article #556. This article asks a different question: which WSL version is running, whether the Windows driver is right, and whether something wrong was installed inside WSL.

Five layers of mechanism

Whether WSL sees the card is not decided by one thing. It is decided by three things acting together, and NVIDIA's official CUDA on WSL documentation, the vdan.cz installation guide, and the freakyjolly.com setup guide all agree on them. The details below come from the sources listed at the end of this article.

Layer one: the WSL version layer — the distribution runs WSL 1, which has no GPU path at all (a main subject of this article). Only WSL 2 has GPU support. NVIDIA's official documentation states that CUDA support in its user guide is specifically for WSL 2, and that WSL 2 is the version with the GPU paravirtualization technology that lets the Windows GPU be lent into the Linux environment. WSL 1 is a translation-layer architecture with no such path: inside WSL 1, `nvidia-smi` will never see the card, no matter how new the Windows driver is and no matter what is installed inside WSL. The evidence for this layer is test T2, which reads the version column of `wsl -l -v`. The freakyjolly.com guide states the check plainly: the VERSION column must say 2, and if it says 1, the distribution should be converted with `wsl --set-version Ubuntu 2`.

Layer two: the Windows driver layer — the Windows-side driver is not installed properly, is too old, or the card itself is not supported (a main subject of this article). If `nvidia-smi` fails in Windows PowerShell itself, or the driver version is below the minimum, or the card is a Maxwell-generation or older card, a Quadro card running in TCC mode, or a Tesla card, then WSL cannot see the card either — because the GPU inside WSL is lent in by the Windows driver, and if the host has nothing to lend, WSL has nothing to receive. The evidence for this layer is the first half of test T1. The version minimums depend on the CUDA toolkit version in use: R495 or newer is the floor for CUDA on WSL 2, CUDA 12.x toolkits need R525 or newer, and CUDA 13.x toolkits need R580 or newer. The card must be Pascal (GTX 10 series) or newer; Maxwell is not officially supported, and Turing or newer is recommended. These thresholds move with the toolkit version, so this article gives them as a set tied to the reader's own toolkit version, never as a single universal minimum.

Layer three: the driver-contamination layer inside WSL — a Linux NVIDIA driver was installed inside WSL and damaged the libcuda.so stub (a main subject of this article). The reader followed a native-Linux installation guide and ran `apt install nvidia-driver-*` inside WSL, or ran a `.run` installer, and a Linux driver went into the distribution. The result is that the stub the Windows driver exposes is overwritten or conflicts with the Linux driver, and `nvidia-smi` fails inside WSL even though Windows is completely fine and the WSL version is 2. The evidence for this layer is test T3. This layer catches the most people, because "install a Linux driver inside Linux" sounds reasonable — but WSL is not native Linux, and that instinct is wrong here.

Layer four: the toolkit layer — the wrong meta-package was installed, bringing a driver in with it (a boundary, not a main subject). Installing the toolkit with `cuda`, `cuda-X-Y`, or `cuda-drivers` pulls a Linux driver into WSL along with the toolkit. The correct choice is the WSL-Ubuntu installer or the `cuda-toolkit-X-Y` package, which installs the toolkit without the driver. This layer shares a root with layer three — a Linux driver ends up inside WSL — but the trigger is different: not installing a driver directly, but installing a toolkit package that drags one in. This article states the distinction plainly and does not merge the two layers. The boundary table below lists it.

Layer five: the application layer — WSL sees the card, but the program runs on the CPU or runs out of memory (a boundary, not a main subject). If `nvidia-smi` inside WSL lists the card, this article's work is done. A transcription tool selecting the wrong device is article #561. An Ollama model running on the CPU is article #556. A PyTorch out-of-memory error is article #552. A Docker container that cannot see the card is article #554, on the condition that the host `nvidia-smi` works. The boundary table below lists all of them.

The mechanism leads to one key distinction: "WSL cannot find the card" is not one cause, it is one of three variables failing — which WSL version is running, whether the Windows driver is right, and whether something wrong was installed inside WSL. Each variable has its own test, and each test's variable and outcome variable are different.

The version numbers that move

Two numbers in this area come in more than one version, and the article handles both by stating the scope rather than picking one side. First, the WSL kernel version: NVIDIA's documentation gives a minimum of 4.19.121 and a recommended 5.10.16.3 or newer, while vdan.cz cites a Microsoft requirement of 5.10.43.3 or newer. These are not contradictory — one is NVIDIA's recommendation, the other is Microsoft's requirement — and the practical advice is the same either way: run `wsl --update` and use the newest kernel available. Second, the driver floor moves with the CUDA toolkit version, as set out in layer two above: R495, R525, and R580 are three floors for three toolkit generations, and the reader must match the floor to their own toolkit version rather than copying any one of them as a universal rule. A third moving target is the download page itself: vdan.cz notes that the CUDA 13.4.2 download page no longer lists a WSL-Ubuntu target. That is a statement about the download page at the time it was observed, not a change in the mechanism, and this article writes no download-page state as fixed fact — readers should go by NVIDIA's download page as it stands when they visit it.

What nvidia-smi inside WSL can and cannot tell you

NVIDIA's official documentation states that NVIDIA-SMI will have a limited feature set on WSL 2. That means `nvidia-smi` inside WSL listing the card does not imply that every column is as complete as in Windows — some fields are simply not filled in under WSL. The test in this article therefore uses one criterion only: whether the card is listed at all. A missing field inside WSL is not evidence of a fault, and this article never treats it as one. The same caution applies in the other direction: a `nvidia-smi` inside WSL that lists the card proves the detection layer works, and any remaining problem with a specific program belongs to the application layer, not to this article.

Seven-step diagnosis

  1. Characterise the shape. In Windows PowerShell, run `nvidia-smi`. If it produces output listing the card, go to step 2. If it fails, this is not the article — follow articles #106, #154, or #367, which cover a host that cannot see the card.
  2. Run the host-against-WSL comparison (T1). Inside WSL, run `nvidia-smi`. If it lists the card, this is not the article — go to step 6, the application layer. If it cannot find the card, go to step 3.
  3. Run the version comparison (T2). In PowerShell, run `wsl -l -v` and read the VERSION column for the target distribution. If it says 1, convert it to 2 with `wsl --set-version <distribution> 2` and test again: if the card appears, the version layer is confirmed and the diagnosis is done. If it says 2, go to step 4.
  4. Run the driver-contamination comparison (T3). Check whether a Linux NVIDIA driver is installed inside WSL. If one is, remove it, run `wsl --shutdown`, reopen WSL, and test again: if the card appears, the contamination layer is confirmed and the diagnosis is done. If none is installed, go to step 5.
  5. Check the toolkit. Check whether a `cuda`, `cuda-X-Y`, or `cuda-drivers` meta-package was installed inside WSL. If one was, remove it and install the `cuda-toolkit-X-Y` package or the WSL-Ubuntu installer instead, then test again. If the toolkit was installed correctly, go to step 6.
  6. Exclude the application layer. If `nvidia-smi` inside WSL lists the card but the program does not use it, follow article #561 (transcription-tool device selection), article #556 (Ollama model running on the CPU), article #552 (PyTorch out of memory), or article #554 (Docker container). If the card is still not visible after steps 2 to 5, go to step 7.
  7. Stop. If all three tests still do not separate the cause, record five things — the Windows driver version, the WSL version from `wsl -l -v`, the WSL kernel version from `wsl cat /proc/version`, the `nvidia-smi` output from both sides, and the list of NVIDIA-related packages installed inside WSL from `dpkg -l | grep -i nvidia` — and bring those notes to a check. Do not install Linux drivers inside WSL one after another, and do not reinstall the distribution: reinstalling cannot change the WSL version or the state of the stub.

Three decisive tests

Each test changes exactly one variable and watches one outcome. Use the same distribution and the same card for every run, and judge by whether `nvidia-smi` lists the card — not by how the system feels. After a driver update or after removing a contaminating driver, run `wsl --shutdown` and reopen WSL before testing again, because WSL otherwise keeps its old state.

T1: Windows host against WSL — the same card, nvidia-smi run once on each side

First run `nvidia-smi` in Windows PowerShell and record whether it lists the graphics card and which driver version it reports. Then open WSL, using the same distribution, and run `nvidia-smi` there, and record the result. Run each side three times and record each result, so a one-off glitch cannot be mistaken for a pattern.

Why this test is new: article #554 already runs a Windows-against-WSL `nvidia-smi` comparison — its T6 runs `nvidia-smi.exe` on Windows and `nvidia-smi` inside WSL2, with the same variable (which side runs `nvidia-smi`) and the same outcome variable (whether WSL sees the card). What T1 adds is the protocol around that comparison: each side is run three times and every result recorded, so a one-off glitch cannot be mistaken for a pattern; the both-fail branch (neither side lists the card, so the fault is in the Windows driver layer, following articles #106, #154, or #367) and the both-pass branch (both sides list the card, so the problem belongs to the application layer) are spelled out, where #554 T6 covers only the Windows-works-WSL-does-not branch; and T1 is the entry gate that feeds T2 and T3. Article #554's own container test is about daemon configuration files and runtime registration, with the outcome variable being whether the container has the device files. Article #556 discusses which processor an Ollama model runs on, not a two-sided `nvidia-smi` comparison. Article #561 discusses transcription-tool device selection, not the WSL layer.

T2: WSL version comparison — read the VERSION column of wsl -l -v, then convert and re-test

In PowerShell, run `wsl -l -v` (or `wsl --list --verbose`) and read the VERSION column for the target distribution. Run `nvidia-smi` inside WSL three times after any change and record each result, so the direction must repeat across all three runs.

Why this test is new: across the whole article library, the phrase `wsl --list` appears zero times in either language, and "WSL CUDA" appears zero times in either language. "WSL2" appears in only two Chinese articles (#554 and #561) and one English article (#554). Article #554 mentions the WSL2 backend only as one layer of its Docker setup, and never turns the VERSION column into a decisive test. Article #561 mentions WSL2 once, as a boundary note handing the WSL layer back to #554. Neither article gives the reader a version comparison. T2's variable (WSL version 1 against 2) plus its outcome variable (whether `nvidia-smi` lists the card) appears in no neighbouring article.

T3: Driver-contamination comparison inside WSL — check for a Linux NVIDIA driver, remove it, and re-test

Inside WSL, check two things: (a) whether the `/usr/lib/wsl/lib/` directory contains the `libcuda.so` stub that the Windows driver exposes into WSL; and (b) whether a Linux NVIDIA driver is installed inside the distribution — for example, whether `dpkg -l | grep -i nvidia-driver` returns results, or whether a `.run` installer was ever run. Then remove the Linux driver by the distribution's own removal method, run `wsl --shutdown`, reopen WSL, and run `nvidia-smi` three times, recording each result to confirm the direction.

Why this test is new: the concept "do not install any Linux display driver in WSL" appears in only one article in the library, #554 — and #554's T6 does check whether a Linux GPU driver was installed inside WSL, and its FAQ Q5 says that if one was, it must be removed. What T3 adds is the protocol #554 does not have: the `libcuda.so` stub check in `/usr/lib/wsl/lib/`, removal followed by `wsl --shutdown`, and a three-run `nvidia-smi` re-test as a controlled comparison. #554 checks and says remove, but never re-tests. Article #561 mentions WSL only as a boundary note. T3's variable (whether a Linux driver is present inside WSL) plus its outcome variable (whether `nvidia-smi` lists the card after removal and re-test) appears in no neighbouring article.

Auxiliary observations

These are useful supporting observations. They are deliberately not counted among the three decisive tests.

Updating the WSL kernel with wsl --update. Microsoft requires kernel 5.10.43.3 or newer. It is deliberately not counted among the three tests: it is only a precondition for T2, not an independent diagnosis.

Restarting WSL with wsl --shutdown and reopening it. A driver update or a contamination removal only takes effect after WSL is restarted. It is deliberately not counted among the three tests: it is only the reset step for T1 and T3, not an independent variable.

The .wslconfig memory limit. WSL 2 by default takes only half of the system memory, and a large model can fail because there is not enough memory. It is deliberately not counted among the three tests: it affects whether a large model can run, not whether the card is detected, and the memory-budget layer is the route in articles #552 and #553.

The three tests, in one table

TestVariable changedOutcome variableWhat a positive result means
T1: Windows host vs WSLWhich side runs nvidia-smiWhether nvidia-smi inside WSL lists the cardThe fault is in the WSL bridging layer
T2: WSL version 1 vs 2WSL version of the distributionWhether nvidia-smi lists the card after conversion to 2The version layer is the cause
T3: Linux driver inside WSL present vs removedWhether a Linux NVIDIA driver is installed inside WSLWhether nvidia-smi lists the card after removalThe contamination layer is the cause
Auxiliary: wsl --updateKernel versionWhether the kernel meets the requirementPrecondition for T2, not a diagnosis
Auxiliary: wsl --shutdownWSL running stateWhether the new state takes effectReset step for T1 and T3
Auxiliary: .wslconfig memory limitMemory available to WSLWhether a large model can runMemory-budget layer, not detection

Common misconceptions

  1. "A Linux driver must be installed inside WSL before the GPU can be used." Wrong. NVIDIA's official documentation states in bold that the Windows driver is the only driver to install, and that no Linux display driver should be installed in WSL. The Windows driver exposes a `libcuda.so` stub into WSL, and installing a Linux driver only damages it.
  2. "If nvidia-smi inside WSL says there is no card, the card is broken." Wrong. Run test T1 first: if Windows lists the card and WSL does not, the fault is in the WSL bridging layer, not in the card. Only if both sides fail should the host layer be suspected.
  3. "WSL 1 and WSL 2 both support the GPU." Wrong. Only WSL 2 has GPU paravirtualization. Inside WSL 1, `nvidia-smi` will never see the card, however much is installed. Run T2 and read the VERSION column first.
  4. "Installing the cuda package is installing the CUDA toolkit." Wrong. `cuda`, `cuda-X-Y`, and `cuda-drivers` are meta-packages that pull a Linux driver into WSL along with the toolkit. Install `cuda-toolkit-X-Y` or the WSL-Ubuntu installer, which installs the toolkit without the driver.
  5. "If Docker cannot find the card, WSL must be broken." Wrong. The Docker layer has its own runtime — article #554 covers the Container Toolkit, the daemon configuration file, and runtime registration. WSL seeing the card does not imply that a container sees it, and the two layers must be tested separately.
  6. "If some field of nvidia-smi inside WSL is empty, the driver is faulty." Wrong. NVIDIA's official documentation states that NVIDIA-SMI has a limited feature set on WSL 2 — some fields are simply not filled in there. The test criterion is whether the card is listed at all, not whether every field is complete.

Boundary cases: what this article is not

SituationWhich route appliesWhy it is not this article
The Windows host cannot see the card either (nvidia-smi fails in PowerShell)#106 / #154 / #367Host layer — the GPU inside WSL is lent in by the Windows driver, so if the host has nothing, WSL has nothing. This article assumes the host sees the card
Docker containers cannot find the card (host nvidia-smi works)#554Container runtime layer — Container Toolkit, daemon configuration, runtime registration. This article covers WSL itself, not containers
A virtual machine with GPU passthrough cannot see the card, or shows Code 43#204Passthrough layer — IOMMU isolation and driver binding. WSL is not passthrough; it is paravirtualization, a completely different mechanism
WSL sees the card, but a transcription tool runs on the CPU#561Application device-selection layer — device and compute type. This article's exit point is "the card is visible"
WSL sees the card, but an Ollama model runs on the CPU#556num_gpu layer count. This article does not cover Ollama settings
WSL sees the card, but PyTorch reports out of memory#552Allocator fragmentation layer. This article does not cover out-of-memory errors
AI runs slowly inside WSL, or keeps waiting for data#562Data pipeline layer — worker counts and data location. Slow does not mean the card was not found
A large model fails inside WSL because there is not enough memory#552 / #553WSL 2 by default takes only half of the system memory, adjustable in .wslconfig. That is a memory-budget layer, not a detection layer
Running a local model with Ollama inside WSL#565 / #556Ollama connection and num_gpu layers. WSL is only one of Ollama's environments
The card is Maxwell or older, a Quadro in TCC mode, or a Tesla cardNot officially supportedNVIDIA's official documentation states Maxwell is not supported and TCC and Tesla cards are not supported — that is outside the support range, not a fault

Neighbour articles and the boundary map

This article is #573, and its companion in the same batch is #574, which covers SteamVR errors and headset detection. The two share a batch and a diagnostic style — five layers, seven steps, decisive tests — but nothing else: one is a WSL virtualization GPU problem, the other is a VR runtime problem, and they share no test, no variable, and no outcome.

The closest neighbours, read closely. Article #554 is the Docker container article. It covers the Container Toolkit, runtime registration, and driver versions, and the WSL2 backend is one layer inside its five-layer setup — its sixth test (T6) already runs a Windows-against-WSL2 `nvidia-smi` comparison, checks whether a Linux GPU driver was installed inside WSL2, and its FAQ Q5 asks exactly that shape. What this article adds is the protocol around that comparison: three runs per side, the both-fail and both-pass branches, the `libcuda.so` stub check, and removal followed by shutdown and a three-run re-test. Its premise states that the host `nvidia-smi` must work before containers are discussed at all, and its container test is about daemon configuration files and runtime registration, with the outcome variable being whether the container has the device files. This article's outcome variable in every test is whether WSL itself sees the card. Article #554's full text contains zero occurrences of `wsl --list` and zero of "WSL CUDA". Article #561 is the transcription-tool article: its tests are about device selection, compute type, and model size, and WSL appears in it exactly once, as a boundary note handing the WSL layer back to #554 — it never makes WSL a main subject. Article #556 is the Ollama-runs-on-CPU article: its variables are the num_gpu layer count in the Modelfile, the API, and the client, and its outcome variable is whether the model runs on the CPU or the GPU. Its full text contains zero occurrences of "WSL" — it assumes the program already sees the card and asks why it does not use it, which is one layer later than this article. Article #204 is the virtual-machine passthrough article: it covers IOMMU isolation, driver binding, and Code 43, and its full text contains zero occurrences of "WSL", because passthrough and paravirtualization are different mechanisms. Articles #552 and #553 are the out-of-memory and vLLM articles: both assume the program already sees the card, and their variables are memory budgets, not detection. Article #562 is the data-pipeline article, about worker counts and data location, and its premise is that the card is already visible. Article #507 is a false hit worth naming: its only mention of WSL is that Windows users generally use an unofficial precompiled binary or WSL to compile a tool, which has nothing to do with GPUs.

The library scan. Across the whole article library, re-counted for this batch: "WSL" appears in 2 Chinese articles (#554 and #561) and, case-insensitively, in 2 English articles (#507 and #554), of which only #554 is about WSL and GPUs. "WSL2" appears in 2 Chinese articles (#554 and #561) and 1 English article (#554). "WSL CUDA" appears zero times in either language. "CUDA on WSL" appears in 1 Chinese article (#554) and 1 English article (#554). "wsl --list" appears zero times in either language. "nvidia-smi" appears in 13 Chinese articles and 15 English articles — the same 13 as the Chinese set, plus #122 and #151, both general mentions of the tool. One of them, #554, does run a Windows-against-WSL comparison (its T6), and it is the only one that does. No article in the library has ever made the WSL version into a decisive test, and none has turned driver contamination inside WSL into a check, a removal, and a re-test.

Two numbers that must not be borrowed. The driver floors R495, R525, and R580 belong to three different toolkit generations, and this article keeps them tied to their generations. A reader who copies R495 as a universal floor while running a CUDA 13.x toolkit would be using a floor that does not apply to their toolkit, and a reader who copies R580 as a universal floor would be applying a newer floor than their toolkit needs. The same applies to the kernel numbers: NVIDIA's minimum of 4.19.121 and recommended 5.10.16.3, against Microsoft's requirement of 5.10.43.3, are two different statements from two different parties, and this article reports both rather than merging them into one number.

Sources and honesty gaps

The facts in this article come from the following sources, checked by search on 2026-11-24: NVIDIA's official CUDA on WSL documentation, at https://docs.nvidia.com/cuda/archive/12.3.1/wsl-user-guide/index.html, for the statements that CUDA support in the user guide is specifically for WSL 2, that R495 and later Windows drivers have CUDA support for WSL 2, that NVIDIA-SMI will have a limited feature set on WSL 2, that the Windows driver is the only driver to install and no Linux display driver should be installed in WSL, that the card must be Pascal or newer in WDDM mode, that Quadro cards in TCC mode and Tesla cards are not supported, and for the kernel minimum of 4.19.121 and recommended 5.10.16.3 or newer; the vdan.cz CUDA WSL2 installation guide, updated 2026-09 against the NVIDIA CUDA 13.4 documentation, at https://vdan.cz/ai/cuda-support-for-wsl-2/, for the statements that CUDA in WSL2 needs exactly one driver — the normal NVIDIA driver on Windows — that Windows exposes it inside WSL2 as `libcuda.so` so a Linux NVIDIA driver is never installed in the distribution, that the `cuda`, `cuda-X-Y`, and `cuda-drivers` meta-packages should never be installed, that CUDA 13.x toolkits need an R580 or newer driver, and that the WSL kernel must be 5.10.43.3 or newer, and for the observation that the CUDA 13.4.2 download page no longer lists a WSL-Ubuntu target; the freakyjolly.com WSL2 local-AI setup guide, checked 2026-11, at https://freakyjolly.com/wsl2-local-ai-setup/, for the statements that only the normal NVIDIA Windows driver should be installed and a Linux NVIDIA driver should never be installed inside WSL, that running `nvidia-smi` inside Ubuntu and seeing the card listed means the GPU is ready, that the VERSION column of `wsl -l -v` must say 2 and a distribution showing 1 should be converted with `wsl --set-version Ubuntu 2`, that WSL should be restarted with `wsl --shutdown` after a driver update, that WSL 2 by default takes only half of the system memory, and that GPU compute needs Windows 11 or Windows 10 21H2 or newer; and Microsoft Learn, cross-checked through the NVIDIA documentation and the freakyjolly.com guide rather than opened directly in this batch, for the commands `wsl --install`, `wsl --update`, and `wsl -l -v` and the kernel requirement of 5.10.43.3 or newer cited by vdan.cz.

Three honesty gaps must be stated plainly. First, there was no local reproduction: WSL 2 with CUDA was not run on a local machine for this article, so the two-sided `nvidia-smi` comparison, the version conversion, and the contamination removal all come from the external sources listed above. Different Windows versions, driver versions, and distributions may produce different command output, so this article describes the comparison design and does not fix one version's output format as absolute. Second, NVIDIA's official documentation exists in several versions at once — the 11.4, 12.2, and 12.3 documents differ in places, for example in the older Insider Preview requirement — and this article uses the 12.3 document as its main source with vdan.cz, which follows the 13.4 document, as its second source. Readers should go by the documentation for their own version. Third, the Microsoft Learn page was not opened directly in this batch; the `wsl --install`, `wsl --update`, and `wsl -l -v` commands are used here on the authority of NVIDIA's official documentation, cross-checked against the freakyjolly.com guide. Two source conflicts were handled by stating the scope rather than picking a side: the kernel version comes in two wordings (NVIDIA's recommendation against Microsoft's requirement), so both are reported; and the driver floor comes in three wordings (R495, R525, R580), so each is tied to its toolkit generation. The download-page observation about CUDA 13.4.2 is reported as a page state at the time it was observed, not as a fixed fact.

Frequently asked questions

Windows sees the card but WSL does not. What should I do first?

Run test T1 first: in Windows PowerShell, run `nvidia-smi` three times and record whether it lists the graphics card and which driver version it reports each time; then open WSL and run `nvidia-smi` three times there and record the results. Windows can and WSL cannot means the fault is in the WSL bridging layer — run T2 and T3. Neither side can means the fault is in the Windows driver layer, so fix the Windows side first and do not work in circles inside WSL. Both sides can means this is not the article — follow the application-layer articles instead.

How do I know whether I am running WSL 1 or WSL 2?

In PowerShell, run `wsl -l -v` and read the VERSION column for the target distribution: 1 means WSL 1, 2 means WSL 2. WSL 1 has no GPU path at all, so the card can only appear after the distribution is converted to 2. Before converting, run `wsl --update` to update the WSL kernel, and after converting, confirm the VERSION column really says 2, then run `nvidia-smi` inside WSL three times and record whether the card appears each time.

Why does installing a Linux NVIDIA driver inside WSL make things worse?

Because the GPU inside WSL 2 does not depend on a driver inside WSL — it depends on the Windows driver exposing a `libcuda.so` stub into WSL, located in `/usr/lib/wsl/lib/`. Installing a Linux driver inside WSL overwrites or conflicts with that stub, and `nvidia-smi` inside WSL then fails. NVIDIA's official documentation states that the Windows driver is the only driver to install and that no Linux display driver should be installed in WSL. The fix is to remove the Linux driver inside WSL, not to install it again.

Which CUDA toolkit package should I install inside WSL?

Install the WSL-Ubuntu installer or the `cuda-toolkit-X-Y` package. Never install the `cuda`, `cuda-X-Y`, or `cuda-drivers` meta-packages — they pull a Linux driver into WSL along with the toolkit and damage the stub described above. If the wrong package was already installed, remove the meta-package, install the correct toolkit package instead, and then run `nvidia-smi` inside WSL three times to confirm. Go by NVIDIA's download page as it stands when you visit it; do not copy the state of any older download page.

How new does the driver need to be? Is there one universal minimum?

There is no single universal minimum — it depends on the CUDA toolkit version in use. The Windows driver must be R495 or newer for CUDA on WSL 2; a CUDA 12.x toolkit needs R525 or newer; a CUDA 13.x toolkit needs R580 or newer. On the card side, the GPU must be Pascal (GTX 10 series) or newer — Maxwell is not officially supported, Turing or newer is recommended — and Quadro cards in TCC mode and Tesla cards are not supported in WSL 2. No one of these numbers can be copied as a universal floor.

Some field of nvidia-smi inside WSL is empty. Does that mean the driver is faulty?

No. NVIDIA's official documentation states that NVIDIA-SMI has a limited feature set on WSL 2, so some fields are simply not filled in there. The test criterion is whether the card is listed at all, not whether every field is complete. As long as `nvidia-smi` lists the graphics card, the detection layer has passed, and an empty field is not evidence of a fault.

I have run all three tests and still cannot separate the cause. What now?

Record five things — the Windows driver version, the WSL version from `wsl -l -v`, the WSL kernel version from `wsl cat /proc/version`, the `nvidia-smi` output from both sides, and the list of NVIDIA-related packages installed inside WSL from `dpkg -l | grep -i nvidia` — and bring those notes to a check. Do not install Linux drivers inside WSL one after another, and do not reinstall the distribution: reinstalling cannot change the WSL version or the state of the stub. If there is a hardware suspicion — for example, the machine itself is unstable, or the graphics card behaves abnormally during use — the machine can be taken to the workshop for a further check.

Conclusion

A graphics card that Windows sees and WSL does not is a three-variable problem with a fixed shape: the host lists the card, WSL does not, and the difference is measurable. The three comparisons in this article — the same card tested on both sides, the WSL version read and converted, and the Linux driver inside WSL checked and removed — separate the version layer, the Windows driver layer, and the contamination layer, with whether `nvidia-smi` lists the card as the only judge, and each one changes exactly one variable. The version numbers are kept honest too: the driver floor and the kernel requirement come in more than one wording, so the article reports each wording with the version it belongs to and tells the reader to check their own version rather than copying one number as the answer.

When to seek professional help: if the Windows host itself cannot detect the card or the machine will not boot, if all three tests still cannot separate the cause, or if the machine crashes or the graphics card behaves abnormally during use, the problem is no longer a WSL setting — it may involve the BIOS, the installation, or the hardware itself, and it is worth having a technician check it.

If the tests point to a hardware fault rather than a setting — the card is not detected, the machine crashes, or an error appears that no setting changes — the card and the setup can be checked at the Shek Mun workshop: Dali Plaza, Room 1209, Shek Mun, Hong Kong. Phone 2186 8010, WhatsApp 6558 6806. Diagnosis and repair pricing follows the workshop's published three-tier range of HK$400–HK$2,800, with the actual quote given after inspection.

Related articles

Related services

If you need Chip-level GPU repair, see these service pages: