An Early Benchmark Of The NVIDIA CUDA GPU Performance On WSL2

Written by Michael Larabel in NVIDIA on 27 June 2020 at 06:00 PM EDT. 11 Comments
NVIDIA
Our recent benchmarks have shown WSL/WSL2 performance on the latest Windows 10 builds to generally be quite good compared to running bare metal Linux. But past the May 2020 Update and on the latest Insider Preview builds is the initial support for GPU acceleration in conjunction with updated Windows graphics drivers. The initial emphasis is on GPU compute with DirectML and for NVIDIA hardware CUDA support as well. Here are a couple CUDA benchmarks that ran gracefully under WSL2 albeit the performance leaves a lot to be desired.

Switching to the latest fast ring Windows 10 Insider Preview builds paired with the latest NVIDIA Windows driver and then installing CUDA within WSL2 can yield working GPU-based CUDA compute support.


But as outlined on the known limitations for CUDA on WSL, performance being less than ideal is known. As the first listed limitation, "Performance has not yet been tuned on the preview driver. This is especially true for small workloads which suffer from a high overhead at this point."
WSL2 NVIDIA CUDA

On a Threadripper 3970X box with NVIDIA TITAN RTX graphics card I ran tests on the WSL2 Insider Preview build (with Ubuntu 20.04 WSL2) and then under Ubuntu 20.04 LTS bare metal with the same hardware, latest drivers, and with CUDA 11.0-RC.
WSL2 NVIDIA CUDA

WSL2 NVIDIA CUDA

WSL2 NVIDIA CUDA

Indeed, the CUDA performance was very slow for at least these tests when running under Ubuntu WSL2 on the latest Insider Preview build compared to running bare metal Ubuntu... Meanwhile some of the more common tests like Blender with CUDA, V-RAY with CUDA, etc, failed to run at this point under WSL2. In any case, as this WSL2 GPU support matures, will be around with many more benchmarks.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week