Outils pour utilisateurs

Outils du site


archives:archive_d_installation_de_cuda_sur_debian_11

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
archive_d_installation_de_cuda_sur_debian_11 [2021/12/15 18:08] – créée sergearchives:archive_d_installation_de_cuda_sur_debian_11 [2021/12/15 20:13] (Version actuelle) – ↷ Page déplacée de archive_d_installation_de_cuda_sur_debian_11 à archives:archive_d_installation_de_cuda_sur_debian_11 serge
Ligne 1: Ligne 1:
 ====== Archive d'installation de CUDA sur Debian 11 ====== ====== Archive d'installation de CUDA sur Debian 11 ======
 +=====Toute la suite ne sert à rien=====
 +=====Quel driver possible pour votre carte graphique=====
 +<code bash>
 +sudo apt -y install nvidia-detect
 +nvidia-detect
 +</code>
 +===GeForce GTX 850M===
 +<code bash>
 +Detected NVIDIA GPUs:
 +01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 850M] [10de:1391] (rev a2)
 +
 +Checking card:  NVIDIA Corporation GM107M [GeForce GTX 850M] (rev a2)
 +Your card is supported by all driver versions.
 +Your card is also supported by the Tesla 460 drivers series.
 +Your card is also supported by the Tesla 450 drivers series.
 +Your card is also supported by the Tesla 418 drivers series.
 +It is recommended to install the
 +    nvidia-driver
 +package.
 +</code>
 +
 +===GeForce GTX 1060===
 +<code bash>
 +Detected NVIDIA GPUs:
 +01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1060 6GB] [10de:1b83] (rev a1)
 +
 +Checking card:  NVIDIA Corporation GP104 [GeForce GTX 1060 6GB] (rev a1)
 +Your card is only supported up to the 390 legacy drivers series.
 +Your card is also supported by the Tesla 440 drivers series.
 +Your card is also supported by the Tesla 418 drivers series.
 +It is recommended to install the
 +    nvidia-legacy-390xx-driver
 +package.
 +
 +</code>
 +=====Installation numéro 11=====
 +  * https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buster-linux
 +  * **[[https://www.linuxcapable.com/how-to-install-nvidia-495-xx-beta-drivers-on-debian-11-bullseye/|How to Install Nvidia 495.xx Beta Drivers on Debian 11 Bullseye]]**
 + 
 +====Installation du driver NVIDIA avec les dépôts Debian====
 +<code bash>
 +sudo apt install nvidia-driver
 +sudo systemctl reboot
 +</code>
 +
 +====Installation du driver NVIDIA avec les paquets officiels nvidia.com====
 +Récupération du driver dans les archives nvidia.com\\
 +  * https://www.nvidia.com/en-us/drivers/unix/
 +Je choisis de télécharger le driver Latest Legacy GPU version (460.xx series)
 +
 +<code bash>
 +sudo apt -y install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config
 +
 +sudo nano /etc/modprobe.d/blacklist-nouveau.conf
 +# Ajouter
 +blacklist nouveau
 +options nouveau modeset=0
 +# Save Quit
 +
 +sudo update-initramfs -u
 +sudo systemctl set-default multi-user.target
 +sudo systemctl reboot
 +# Se logguer dans le terminal
 +sh NVIDIA-Linux-x86_64-460.91.03.run
 +systemctl set-default graphical.target
 +systemctl reboot
 +</code>
 +
 +====Nvidia Settings====
 +Dans les 2 cas nvidia-settings n'a pas les infos habituelles.
 +
 +
 +
 +  
 +
 +=====Ressources=====
 +  * **[[https://www.server-world.info/en/note?os=Debian_11&p=cuda&f=1|Install CUDA 11.2]]**
 +
 +=====Recherches=====
 +L'installation de CUDA au paragraphe suivant affiche une alerte comme quoi ce qui a été installé avant ne va pas.\\
 +A confirmer sur une prochaine install propre, et virer ce paragraphe si c'est confimé.
 +
 +<code bash>
 +# Téléchargement dans le home de l'installeur
 +wget https://us.download.nvidia.com/XFree86/Linux-x86_64/495.29.05/NVIDIA-Linux-x86_64-495.29.05.run
 +
 +sudo apt install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config -y
 +sudo nano /etc/modprobe.d/blacklist-nouveau.conf
 +
 +# Ajouter ça:
 +blacklist nouveau
 +options nouveau modeset=0
 +# Enregister quitter
 +
 +sudo update-initramfs -u
 +# Pour être en terminal au redémarrage: This will disable the GUI user after reboot:
 +sudo systemctl set-default multi-user.target
 +sudo reboot now
 +
 +# Dans la console, se logger
 +sudo bash NVIDIA-Linux-x86_64-495.29.05.run 
 +
 +# Quand c'est fini
 +startx
 +
 +# Pour ne plus être en terminal au redémarrage
 +sudo systemctl set-default graphical.target
 +sudo reboot now
 +</code>
 +
 +
 +===Sélection du driver===
 +  sudo apt install primus
 +  prime-select
 +  
 +===CUDA===
 +
 +<code bash>
 +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 apt update
 +sudo apt install cuda
 +</code>
 +
 +
 +===Tensorflow with GPU===
 +
 +  source mon_env/bin/activate
 +  python3 -m pip install tensorflow-gpu
 +  
 +===CuDNN===
 +Télécharger CuDNN à [[https://developer.nvidia.com/rdp/cudnn-archive|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:
 +<code bash>
 +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
 +</code>
 +===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
 +
  
archives/archive_d_installation_de_cuda_sur_debian_11.1639591728.txt.gz · Dernière modification : 2021/12/15 18:08 de serge