Nvidia-smi segmentation fault in wsl2 but not in Windows

nvidia-smi segmentation fault in wsl2 but not in Windows · Issue #11277 · microsoft/WSL · GitHub

ubuntu@DESKTOP-2KO0F1T:~$ /usr/lib/wsl/lib/nvidia-smi
Wed May 22 22:06:52 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.42.03 Driver Version: 555.85 CUDA Version: 12.5 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
Segmentation fault
ubuntu@DESKTOP-2KO0F1T:~$ export MESA_D3D12_DEFAULT_ADAPTER_NAME=“nvidia”
ubuntu@DESKTOP-2KO0F1T:~$ nvidia-smi
Wed May 22 22:45:42 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.42.03 Driver Version: 555.85 CUDA Version: 12.5 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
Segmentation fault