WSL: Cannot use GPU support in Windows 10 preview build 21327

Notes from the dev team

Hey everyone we’re filing this issue on ourselves to track the fact that GPU Compute support is unavailable in preview build 21327. This will affect any users who upgrade to this build but will not affect clean installations. We’ve identified a fix for this bug and have checked it in, and will need to wait for it to be validated internally before releasing it as part of the Windows Insiders program, we estimate that it will be available within the next couple of Insider builds. Thanks for your patience here!

Environment

Windows build number: 21327
Your Distribution version: All distros
Whether the issue is on WSL 2 and/or WSL 1: WSL 2

Steps to reproduce

Trying to use any Linux application that leverages the GPU on Windows will not work. Additionally /dev/dxg is not visible.

Expected behavior

I should be able to use Linux applications that leverage the GPU.

Actual behavior

The /dev/dxg device is not available in my Linux distros.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 13
  • Comments: 24 (5 by maintainers)

Most upvoted comments

We have created the fix internally but don’t yet have an ETA for when it will hit Insiders.

@patfla seems like you are hitting this issue.

I’ll post updates to this thread when we have them!

This is now fixed in Windows 10 preview build 21332! Please upgrade to that build or higher and you’ll be resolved. Thanks all for your patience.

Hey y’all, I had similar issue running build 21390. Turns out there was an update missing for wsl. When you check for updates, make sure “receive updates from other microsoft products” is enabled. Also, hit that check for update button a few times, then it’s going to take a while, and you know it really went to check if there was something new or missing.

After installing the update and restarting wsl, /dev/dxg was there, and running deviceQuery from cuda samples was successful.

I also can use gpu in pytorch, which is awesome, thanks.

Clean installations refer to Windows itself in this case.

I tried everything and I cannot make the ./BlackScholes example work. I keep getting the error CUDA error at ../../common/inc/helper_cuda.h:777 code=35(cudaErrorInsufficientDriver) "cudaGetDeviceCount(&device_count)" Also when I do ls -la /dev/dxg, I get: ls: cannot access '/dev/dxg': No such file or directory

OS build : 22000.120 NVidia driver version: 471.21