ubuntu20.04显卡驱动,CUDA 安装和卸载,cudnn安装
时间: 2023-11-26 14:39:34 浏览: 383
您好!可以提供以下安装和卸载显卡驱动,CUDA和CUDNN的步骤:
1. 显卡驱动安装
步骤一:检查Nvidia显卡型号
sudo lshw -C display
步骤二:添加PPA源 ( Personal Package Archive )
sudo add-apt-repository ppa:graphics-drivers/ppa
步骤三:更新源
sudo apt-get update
步骤四:查看可用显卡驱动版本
apt-cache search nvidia-driver
步骤五:安装
sudo apt-get install nvidia-driver-<version>
2. CUDA 安装和卸载
步骤一:下载cuda安装包,下载地址:https://developer.nvidia.com/cuda-toolkit-archive
步骤二:安装
sudo sh cuda_XXX.run --override
步骤三:卸载
sudo /usr/local/cuda-X.Y/bin/uninstall_cuda_X.Y.pl
sudo rm -rf /usr/local/cuda-X.Y
3. CUDNN 安装
步骤一:下载CUDNN安装包,下载地址:https://developer.nvidia.com/rdp/cudnn-download
步骤二:解压
tar -xzvf cudnn-X.X-linux-x64-vX.X.X.X.tgz
步骤三:复制CUDNN库文件到CUDA安装目录中
sudo cp -P cuda/lib64/libcudnn* /usr/local/cuda-XX.X/lib64/
sudo cp cuda/include/cudnn.h /usr/local/cuda-X.X/include/
阅读全文
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)