Outils pour utilisateurs

Outils du site


debian_11_bullseye_et_cuda

Ceci est une ancienne révision du document !


Debian 11 Bullseye Mate et CUDA

Installation de Debian Mate

su
/usr/sbin/adduser toto sudo

Se déconnecter, reconnecter

sudo apt install mate-menu mate-desktop-environment-extras locales terminator gparted geany geany-plugins ncdu git gnome-system-tools caja-open-terminal cheese guvcview software-properties-common mate-tweak synaptic terminator geany geany-plugins git python3-pip
sudo dpkg --add-architecture i386
sudo apt update
sudo apt upgrade

CUDA

Ressources

Driver

sudo pluma /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
 
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
 
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt update
sudo apt -y install nvidia-driver firmware-misc-nonfree
cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf 

Message d'alerte –> ok puis redémarrer
Test avec

nvidia-smi 

CUDA

L'installation de CudNN va installer CUDA, donc il faut tester en installant en 1er CudNN!

wget https://developer.download.nvidia.com/compute/cuda/11.5.1/local_installers/cuda-repo-debian11-11-5-local_11.5.1-495.29.05-1_amd64.deb
sudo dpkg -i cuda-repo-debian11-11-5-local_11.5.1-495.29.05-1_amd64.deb
sudo apt-key add /var/cuda-repo-debian11-11-5-local/7fa2af80.pub
sudo add-apt-repository contrib
sudo apt-get update
sudo apt-get -y install cuda

Tensorflow with GPU

source mon_env/bin/activate
python3 -m pip install tensorflow-gpu

CuDNN

Télécharger CuDNN à developer.nvidia.com cudnn-archive. Les dev sont nécessaires pour une compilation.
Pour pouvoir télécharger, il faut s'inscrire sur le site Nvidia et monter Pattes Blanches…

Exemple:

sudo dpkg -i libcudnn8_8.3.0.98-1+cuda11.5_amd64.deb
sudo dpkg -i libcudnn8-dev_8.3.0.98-1+cuda11.5_amd64.deb

OpenCV

wget -O opencv.zip https://github.com/opencv/opencv/archive/4.5.3.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.5.3.zip
debian_11_bullseye_et_cuda.1639408037.txt.gz · Dernière modification : 2021/12/13 15:07 de serge