ubuntu cuda cudnn tensorRT的卸载和安装

1. 安装显卡驱动

显卡安装教程

查看N卡驱动支持的最高cuda版本:

nvidia-smi

2. 卸载

 sudo apt-get --purge remove "*cublas*" "*cufft*" "*curand*" \
 "*cusolver*" "*cusparse*" "*npp*" "*nvjpeg*" "cuda*" "nsight*" 

3. 安装

cuda版本地址:
cuda

设置环境变量:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64
export PATH=$PATH:/usr/local/cuda-10.0/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-10.0

cudnn版本及和cuda对应的版本:
cudnn

sudo cp ./include/cudnn*.h /usr/local/cuda-10.2/include
sudo cp -P ./lib/libcudnn* /usr/local/cuda-10.2/lib64
sudo chmod a+r /usr/local/cuda-10.2/include/cudnn*.h 
sudo chmod a+r /usr/local/cuda-10.2/lib64/libcudnn*

参考

tensorRT
tensorRT

参考

你可能感兴趣的:(C++,ubuntu,linux,运维)