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

1 Like

debian@DESKTOP-QQG1DLA:~$ nvidia-smi
Sun Jul 28 13:11:21 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.27 Driver Version: 560.70 CUDA Version: 12.6 |
|-----------------------------------------±-----------------------±---------------------+
| 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
debian@DESKTOP-QQG1DLA:~$
debian@DESKTOP-QQG1DLA:~$ nvidia-smi
Sun Jul 28 13:11:23 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.27 Driver Version: 560.70 CUDA Version: 12.6 |
|-----------------------------------------±-----------------------±---------------------+
| 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
debian@DESKTOP-QQG1DLA:~$ wslinfo --wsl-version
2.3.13
debian@DESKTOP-QQG1DLA:~$