#参考页面 https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg
sudo apt install mesa-utils
glxinfo -B #查看当前显卡
export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA
glxinfo -B #查看当前显卡
WSL设置默认显卡
最新推荐文章于 2024-08-21 10:45:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#参考页面 https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg
sudo apt install mesa-utils
glxinfo -B #查看当前显卡
export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA
glxinfo -B #查看当前显卡