# WSL2 安裝顯卡驅動 這篇是要要在[WSL2安裝Tensorflow-gpu](https://hackmd.io/@Kailyn/H1lKxHKeF)的一個前置作業。 **本篇會包含:** * 安裝CUDA Driver for WSL --- ## 安裝CUDA Driver for WSL 到NVIDIA的[GPU on WSL](https://developer.nvidia.com/cuda/wsl) ![](https://i.imgur.com/Fbiqxrt.png) 根據你的GPU,選擇GeForce或Quadro。 ![](https://i.imgur.com/BLbuANn.png) 注意到,不需要去下載CUDa driver for linux,因為兩個不一樣。 [CUDA on WSL User Guide](https://docs.nvidia.com/cuda/wsl-user-guide/index.html)說只需要下載這個driver就好,它會同時安裝好for native Windows跟for WSL的。我本來就已經有裝好for Windows 10的driver,不過目前看來照樣安裝也沒問題。 **檢查:** 輸入 ``` nvidia-smi ``` --- ## 參考資料: 1. CUDA on WSL User Guide(https://docs.nvidia.com/cuda/wsl-user-guide/index.html) ###### tags: `電腦` `WSL` `GPU` `CUDA`