New CUDA on WSL2 driver 471.21 has been posted

Please check out our new WSL2 WIP driver 471.21 on both Windows 11 and Windows 10 preview builds.

Driver is available on the download area without signing in!

If it is still asking you to signin, please clear your cache or try it on incognito

We’ve updated our user guide also!

As always please let us know your feedback

We are running a WSL2 Docker Desktop Poll - please provide your response here

Please register for the NVIDIA Developer Program and the Microsoft Windows Insider Program , to access the driver installers and documentation from the Downloads area on our CUDA on WSL webpage.

Our user guide and blog links below, contain valuable information to aid you to learn how CUDA works with WSL, including how to get started with running applications, and deep learning containers.

We encourage all of our developers to use our Forum for sharing their experience with the larger WSL community.

1 Like

Please respond to our WSL2 Docker Desktop Poll here

I’m seeing extremely slow opengl performance:

Running glxspheres64 from VirtualGL…

  1. Winver: Version 21H2 OS Build 22000.100
  2. Linux tdl-6bz6243 5.10.43.3-microsoft-standard-WSL2 #1 SMP Wed Jun 16 23:47:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  3. NVIDIA-SMI: 470.50
  4. Nvidia Driver: 471.21
  5. CUDA Version: 11.4
  6. NVIDIA GeForce 1650 on laptop
~$ glxinfo -B
name of display: :0
NVD3D10: CPU cyclestats are disabled on client virtualization
NVD3D10: CPU cyclestats are disabled on client virtualization
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (NVIDIA GeForce GTX 1650) (0xffffffff)
    Version: 21.1.6
    Accelerated: yes
    Video memory: 12002MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce GTX 1650)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.1.6 - kisak-mesa PPA
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 21.1.6 - kisak-mesa PPA
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.1.6 - kisak-mesa PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
~$ /opt/VirtualGL/bin/glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
NVD3D10: CPU cyclestats are disabled on client virtualization
NVD3D10: CPU cyclestats are disabled on client virtualization
GLX FB config ID of window: 0x91 (8/8/8/8)
Visual ID of window: 0x184
Context is Direct
OpenGL Renderer: D3D12 (NVIDIA GeForce GTX 1650)
0.379514 frames/sec - 0.423537 Mpixels/sec
0.362116 frames/sec - 0.404121 Mpixels/sec
0.443209 frames/sec - 0.494622 Mpixels/sec

Joe,

Are you reporting a regression ? Could you provide more details on whether the performance has gotten worse since the upgrade to 471.21?

This shouldn’t be related to CUDA - why do you think it is ?

How you can set with device Nvidia?
This is my glxinfo -B

My Device:

  1. Winver: Version 21H2 OS Build 22000.120
  2. WSL2 latest kernel
  3. NVIDIA-SMI: 470.50
  4. Nvidia Driver: 471.21
  5. CUDA Version: 11.4
  6. NVIDIA GeForce 1060 and Intel HD 630 on laptop

I install CUDA following this way CUDA on WSL :: CUDA Toolkit Documentation (nvidia.com)

Did you find any solution to getting it to detect the Nvidia GPU
I am having the same issue my glxinfo -B is showing the same output.

Update your mesa
Thanks for onomatopellan

You can follow this way:
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt upgrade -y