debian_11_bullseye_et_cuda
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| debian_11_bullseye_et_cuda [2021/12/15 08:47] – [Installation de Debian Mate] serge | debian_11_bullseye_et_cuda [2022/06/18 11:58] (Version actuelle) – [Debian 11 Bullseye Mate et CUDA] serge | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Debian 11 Bullseye Mate et CUDA ====== | ====== Debian 11 Bullseye Mate et CUDA ====== | ||
| + | <WRAP center round box 60% centeralign> | ||
| + | **How to install CUDA on Debian 11 Bullseye** | ||
| + | </ | ||
| - | =====Ressources===== | + | <WRAP center round alert 60%> |
| - | * **[[https:// | + | !!!!!!!!! Ce tuto ne marche pas !!!!!!!!!!! |
| - | * **[[https:// | + | </WRAP> |
| - | + | ===== Installation | |
| - | =====Installation | + | * [[debian_installation_configuration|]] |
| - | * Voir [[debian_installation_configuration|]] | + | |
| <code bash> | <code bash> | ||
| Ligne 15: | Ligne 17: | ||
| sudo pluma / | sudo pluma / | ||
| </ | </ | ||
| - | |||
| Remplacer par | Remplacer par | ||
| - | |||
| <code bash> | <code bash> | ||
| deb http:// | deb http:// | ||
| Ligne 28: | Ligne 28: | ||
| deb-src http:// | deb-src http:// | ||
| </ | </ | ||
| - | |||
| <code bash> | <code bash> | ||
| + | sudo dpkg --add-architecture i386 | ||
| sudo apt update | sudo apt update | ||
| sudo apt upgrade | sudo apt upgrade | ||
| sudo apt install mate-menu mate-desktop-environment-extras locales ncdu git gnome-system-tools caja-open-terminal software-properties-common mate-tweak synaptic terminator geany geany-plugins git firmware-iwlwifi firmware-linux-nonfree | sudo apt install mate-menu mate-desktop-environment-extras locales ncdu git gnome-system-tools caja-open-terminal software-properties-common mate-tweak synaptic terminator geany geany-plugins git firmware-iwlwifi firmware-linux-nonfree | ||
| - | sudo dpkg --add-architecture i386 | ||
| - | sudo apt update | ||
| - | sudo apt upgrade | ||
| - | sudo apt install bumblebee-nvidia | ||
| </ | </ | ||
| - | =====Recherche===== | + | =====Cuda et Driver Nvidia===== |
| - | ====Cette étape est inutile==== | + | L' |
| - | L' | + | |
| - | A confirmer sur une prochaine install propre, et virer ce paragraphe si c'est confimé. | + | |
| <code bash> | <code bash> | ||
| - | # Téléchargement dans le home de l' | + | sudo apt install |
| - | wget https:// | + | nvcc --version |
| - | + | ||
| - | sudo apt install | + | |
| - | sudo nano / | + | |
| - | + | ||
| - | # Ajouter ça: | + | |
| - | blacklist nouveau | + | |
| - | options nouveau modeset=0 | + | |
| - | # Enregister quitter | + | |
| - | + | ||
| - | sudo update-initramfs -u | + | |
| - | # Pour être en terminal au redémarrage: | + | |
| - | 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 | + | |
| </ | </ | ||
| - | ====CUDA==== | + | **Certificat de la bonne installation: |
| <code bash> | <code bash> | ||
| - | wget https:// | + | nvcc: NVIDIA (R) Cuda compiler driver |
| - | sudo dpkg -i cuda-repo-debian11-11-5-local_11.5.1-495.29.05-1_amd64.deb | + | Copyright (c) 2005-2021 NVIDIA Corporation |
| - | sudo apt-key add /var/ | + | Built on Sun_Feb_14_21: |
| - | sudo apt update | + | Cuda compilation tools, release |
| - | sudo apt install cuda | + | Build cuda_11.2.r11.2/compiler.29618528_0 |
| </ | </ | ||
| - | + | ====CuDNN==== | |
| - | + | ||
| - | ====Tensorflow with GPU==== | + | |
| - | + | ||
| - | source mon_env/ | + | |
| - | python3 -m pip install tensorflow-gpu | + | |
| - | + | ||
| - | =====CuDNN===== | + | |
| Télécharger CuDNN à [[https:// | Télécharger CuDNN à [[https:// | ||
| Pour pouvoir télécharger, | Pour pouvoir télécharger, | ||
| + | Choisir un deb pour Ubuntu 20.04 ! | ||
| Exemple: | Exemple: | ||
| <code bash> | <code bash> | ||
| - | sudo dpkg -i libcudnn8_8.3.0.98-1+cuda11.5_amd64.deb | + | sudo dpkg -i libcudnn8_8.1.1.33-1+cuda11.2_amd64.deb |
| - | sudo dpkg -i libcudnn8-dev_8.3.0.98-1+cuda11.5_amd64.deb | + | sudo dpkg -i libcudnn8-dev_8.1.1.33-1+cuda11.2_amd64.deb |
| </ | </ | ||
| - | =====OpenCV===== | ||
| - | |||
| - | wget -O opencv.zip https:// | + | =====Compilation de OpenCV avec CUDA===== |
| - | wget -O opencv_contrib.zip https:// | + | |
| {{tag> cuda ia linux opencv sb }} | {{tag> cuda ia linux opencv sb }} | ||
debian_11_bullseye_et_cuda.1639558047.txt.gz · Dernière modification : de serge
