ubuntu20.04+GTX1050Ti+CUDA+CUDNN | 您所在的位置:网站首页 › 笔记本1050ti显卡驱动哪个版本好点 › ubuntu20.04+GTX1050Ti+CUDA+CUDNN |
参考 https://blog.csdn.net/lu_linux/article/details/117171970 注意,等待确认!!!如果有问题参照 https://blog.csdn.net/m0_52650517/article/details/112908930
1查看驱动 dpkg -l | grep nvidia2/删除多余驱动 sudo apt autoremove nvidia* --purge
https://www.nvidia.cn/drivers/results/175761/ 3、 #赋权限: chmod +x NVIDIA-Linux-x86_64-465.31.run #安装: sudo ./NVIDIA-Linux-x86_64-465.31.run
4、安装cuda wget https://developer.download.nvidia.com/compute/cuda/11.3.1/local_installers/cuda_11.3.1_465.19.01_linux.run sudo sh cuda_11.3.1_465.19.01_linux.run5/zhu yi一定注意不要安装驱动 not install drivers 6/ chen@chen-OptiPlex-7020:~/chendown/cuda$ sudo sh cuda_11.3.1_465.19.01_linux.run =========== = Summary = =========== Driver: Not Selected Toolkit: Installed in /usr/local/cuda-11.3/ Samples: Installed in /home/chen/, but missing recommended libraries Please make sure that - PATH includes /usr/local/cuda-11.3/bin - LD_LIBRARY_PATH includes /usr/local/cuda-11.3/lib64, or, add /usr/local/cuda-11.3/lib64 to /etc/ld.so.conf and run ldconfig as root To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-11.3/bin ***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 465.00 is required for CUDA 11.3 functionality to work. To install the driver using this installer, run the following command, replacing with the name of this run file: sudo .run --silent --driver Logfile is /var/log/cuda-installer.log7/zai在bashrc中添加,主目录中ctrl+h就会出来 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.3/lib64 export PATH=$PATH:/usr/local/cuda-11.3/bin export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-11.38/重新载入 source ~/.bashrc9检查cuda nvcc --versionnvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Mon_May__3_19:15:13_PDT_2021 Cuda compilation tools, release 11.3, V11.3.109 Build cuda_11.3.r11.3/compiler.29920130_0 10/cudnn,我的版本下载为cudnn-11.3-linux-x64-v8.2.0.53,在解压目录下输入如下: sudo cp cuda/include/cudnn* /usr/local/cuda/include/ sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/ sudo chmod a+r /usr/local/cuda/include/cudnn* sudo chmod a+r /usr/local/cuda/lib64/libcudnn* 查看cudnn版本在终端输入 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
|
CopyRight 2018-2019 实验室设备网 版权所有 |