WSL2 access on Tesla V100 32GB GPU

I have a Tesla V100 32GB (PCIe) installed in a system running Windows Server 2022 Datacenter, and I need to use WSL2 because some of the software I need requires a Linux environment.

The problem is getting the V100 to work with GPU acceleration inside WSL2.

The V100 is currently running in TCC mode. Windows detects the GPU normally and nvidia-smi works on the Windows side, but inside WSL2 the GPU is not usable as expected. In particular, nvidia-smi inside WSL2 does not work with the V100 in TCC mode.

I also tried switching the V100 out of TCC mode, but after doing so the GPU disappears from Windows entirely. At that point, it is no longer visible to nvidia-smi on the Windows host either. The only way I’ve found to recover the GPU is to reinstall the NVIDIA driver, after which it appears again.

My understanding is that WSL2 GPU support relies on NVIDIA’s Windows driver and GPU-PV rather than exposing the physical PCIe device directly to the Linux environment. I’m therefore wondering whether the issue is specifically related to the V100’s TCC/WDDM support and WSL2 GPU-PV, rather than a general WSL2 configuration problem.

Has anyone successfully used a Tesla V100 (32GB) with WSL2 on Windows Server 2022?

Specifically:

  • Is a V100 supported for CUDA workloads through WSL2 when running under Windows Server 2022?
  • Does the V100 need to be in WDDM mode rather than TCC for WSL2 GPU-PV?
  • If so, what is the correct procedure for switching the V100 to WDDM without losing the device from Windows?
  • Are there particular NVIDIA driver branches that support this configuration?
  • Is there any known workaround for using a TCC-mode V100 with CUDA inside WSL2?

My end goal is to run Linux CUDA software (for example, Quantum ESPRESSO) using the V100 from within WSL2, while keeping the host OS as Windows Server 2022.

Any information from someone who has actually run a V100 + WSL2 setup would be greatly appreciated.

You might have better luck on the WSL Forum here.