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/13 14:35] – [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** | ||
+ | </ | ||
- | =====Installation de Debian Mate===== | + | <WRAP center round alert 60%> |
- | * Voir [[debian_installation_configuration|]] | + | !!!!!!!!! Ce tuto ne marche pas !!!!!!!!!!! |
+ | </ | ||
- | su | + | ===== Installation Préliminaires ===== |
- | | + | |
- | Se déconnecter, | + | <code bash> |
+ | su | ||
+ | / | ||
+ | # Se déconnecter, | ||
+ | sudo pluma / | ||
+ | </ | ||
+ | Remplacer par | ||
+ | <code bash> | ||
+ | deb http:// | ||
+ | deb-src http:// | ||
- | 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 | + | deb http:// |
+ | deb-src http:// | ||
+ | |||
+ | deb http:// | ||
+ | deb-src http:// | ||
+ | </ | ||
+ | <code bash> | ||
sudo dpkg --add-architecture i386 | sudo dpkg --add-architecture i386 | ||
sudo apt update | sudo apt update | ||
sudo apt upgrade | sudo apt upgrade | ||
- | =====CUDA===== | + | 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 |
- | ====Ressources==== | + | </ |
- | * [[installation_de_cuda|Installation de CUDA sur Ubuntu 20.04]] | + | |
- | * https:// | + | |
- | * https:// | + | |
- | + | ||
- | ====Driver==== | + | |
- | **Comme j'ai eu un gros problème de dépendances en installant CUDA, je pense qu'il ne faut pas installer le driver !** | + | |
- | sudo pluma / | + | =====Cuda et Driver Nvidia===== |
- | + | L' | |
- | Coller, supprimer les doublons: | + | |
<code bash> | <code bash> | ||
- | deb http:// | + | sudo apt install nvidia-cuda-toolkit nvidia-cuda-dev |
- | deb-src http:// | + | nvcc --version |
- | + | ||
- | deb http:// | + | |
- | deb-src http:// | + | |
- | + | ||
- | deb http:// | + | |
- | deb-src http:// | + | |
</ | </ | ||
- | sudo apt update | + | **Certificat |
- | sudo apt -y install nvidia-driver firmware-misc-nonfree | + | |
- | cat / | + | |
- | Message d' | + | |
- | reboot | + | |
- | nvidia-smi | + | |
- | + | ||
- | ====CUDA==== | + | |
- | **L' | + | |
<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 add-apt-repository contrib | + | Cuda compilation tools, release |
- | sudo apt-get update | + | Build cuda_11.2.r11.2/compiler.29618528_0 |
- | sudo apt-get -y install cuda | + | |
</ | </ | ||
- | + | ====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> ia linux sb systeme_exploitation | + | {{tag> |
debian_11_bullseye_et_cuda.1639406150.txt.gz · Dernière modification : 2021/12/13 14:35 de serge