nvidia与cuda需要满足关系:
https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
cuda与cudnn需要满足关系:
https://developer.nvidia.com/rdp/cudnn-archive
cuda历史版本下载连接:
https://developer.nvidia.com/cuda-toolkit-archive
tesnsorflow gcc cuda版本关系图
https://www.tensorflow.org/install/source
安装cudann
卸载
sudo apt-get remove --purge nvidia-cuda-toolkit
删除anaconda
import tensorflow as tf
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
多版本切换
sudo rm -rf /usr/local/cuda
sudo ln -s /usr/local/cuda-10.0/ /usr/local/cuda