Skip to content

[BUG] WSLg cannot use NVIDIA GPU in both normal user terminal and Admin terminal with privilege-elevation at the same time #918

@XuehaiPan

Description

@XuehaiPan

Windows build number:

10.0.19045.0

Your Distribution version:

Ubuntu 20.04

Your WSL versions:

WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2311

Steps to reproduce:

  1. Run wsl --shutdown.
  2. Open wsl with Windows Terminal as a normal user.
  3. Run nvidia-smi:

image

  1. Open wsl with Windows Terminal with "Run as Admin".
  2. Run nvidia-smi:

image


  1. Run wsl --shutdown.
  2. Open wsl with Windows Terminal with "Run as Admin".
  3. Run nvidia-smi
  4. Open wsl with Windows Terminal as a normal user.
  5. Run nvidia-smi

WSL logs:

No response

WSL dumps:

No response

Expected behavior:

Keep the NVIDIA GPU usable in both terminal windows.

Actual behavior:

WSLg loads the NVIDIA driver exclusively between the normal user and the admin.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions