Nvidia GT1070

From The World according to Vissie
Jump to navigation Jump to search

Cuda 10.0

This worked for me:

https://elec-otago.blogspot.com/2019/05/installing-tensorflow-and-cuda-10-on.html
sudo apt-get install linux-headers-$(uname -r | sed 's/[^-]*-[^-]*-//')
sudo apt-get install dkms

Enable backports

deb http://deb.debian.org/debian buster-backports main non-free contrib 
sudo apt update
  1. nvidia-driver 450.66
sudo apt-get -t buster-backports install nvidia-driver nvidia-smi

reboot

wget from

https://developer.nvidia.com/cuda-10.0-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal
dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
sudo apt-key adv --fetch-keys 
http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub
apt update
apt install cuda-libraries-10-0
apt install -t stretch-backports libcuda1

wget from

http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/
dpkg -i libcudnn7_7.6.0.64-1+cuda10.0_amd64.deb
sudo pip3 install --upgrade setuptools 
sudo pip3 install tensorflow-gpu

Install Debian 10

wget https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda-repo-debian10-11-1- local_11.1.1-455.32.00-1_amd64.deb 
sudo dpkg -i cuda-repo-debian10-11-1-local_11.1.1-455.32.00-1_amd64.deb
sudo apt-get install software-properties-common
sudo add-apt-repository contrib
sudo apt-get update
# read what is says on the screen. Should be something like
sudo apt-key add /var/cuda-repo-debian10-11-1-local/7fa2af80.pub
sudo apt-get -y install cuda

reboot

Install Tensorflow

pip uninstall tensorflow
pip install tensorflow-gpu