This is supposedly fixed in the new 21359.1 update which is now available for me.
Version 21354, gpu compute not available within WSL2?
I've been using GPU compute in the last several builds (except for version 21327 which I actually coincidentally skipped, where the was a known issue that the GPU would be unreachable). However, after updating yesterday, I've been getting the below error:
$nvidia-smi
Failed to initialize NVML: GPU access blocked by the operating system
Failed to properly shut down NVML: GPU access blocked by the operating system
Do I need to update my driver or is this a bug?
I was unsure if this is what was referred to in the last bullet point of the known issues on the blog
Announcing Windows 10 Insider Preview Build 21354 | Windows Insider Blog
"Accessing the virtual GPU is broken for Windows and Linux guests, adding a vGPU to a VM will have no effect and the VM will continue running with software rendering."
Windows Insider program | Windows Insider preview | Devices and drivers
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Answer accepted by question author
I've been using GPU compute in the last several builds (except for version 21327 which I actually coincidentally skipped, where the was a known issue that the GPU would be unreachable). However, after updating yesterday, I've been getting the below error:
$nvidia-smiFailed to initialize NVML: GPU access blocked by the operating system
Failed to properly shut down NVML: GPU access blocked by the operating system
Do I need to update my driver or is this a bug?
I was unsure if this is what was referred to in the last bullet point of the known issues on the blog
Announcing Windows 10 Insider Preview Build 21354 | Windows Insider Blog
"Accessing the virtual GPU is broken for Windows and Linux guests, adding a vGPU to a VM will have no effect and the VM will continue running with software rendering."
Please check the WSL GitHub repro for issues, and if it's not a known one, please add it. Issues · microsoft/WSL (github.com)
-Eddie
1 additional answer
Sort by: Most helpful
-
Anonymous
2021-04-08T17:03:21+00:00 Thanks, it is a known issue:
Cannot use GPU support in Windows 10 preview build 21354 · Issue #6773 · microsoft/WSL (github.com)