archives:archive_installation_de_cuda_et_cudnn_sur_un_portable_optimus_avec_debian_9_stretch
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 | ||
installation_de_cuda_et_cudnn_sur_un_portable_optimus_avec_debian_9_stretch [2019/03/23 09:07] – [Installation de CUDA et CUDNN sur un portable optimus avec debian 9 stretch] serge | archives:archive_installation_de_cuda_et_cudnn_sur_un_portable_optimus_avec_debian_9_stretch [2020/04/06 16:07] (Version actuelle) – [Version sur Debian GNU/Linux Version 9 (stretch) 64-bit abandonnée] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Installation de CUDA et CUDNN sur un portable optimus avec debian 9 stretch ====== | + | ====== |
- | **Le but était | + | |
- | Nous avons installé Bumblebee | + | =====Installation de Anaconda CUDA CUDNN sur ubuntu 18.04===== |
+ | ====Avec Anaconda: mauvaise idée==== | ||
+ | | ||
+ | ===Conda=== | ||
+ | wget -c https:// | ||
+ | sh Anaconda3-2018.12-Linux-x86_64.sh | ||
+ | ===CUDA=== | ||
+ | < | ||
+ | wget -c https:// | ||
+ | sudo dpkg -i cuda-repo-ubuntu1804-10-1-local-10.1.105-418.39_1.0-1_amd64.deb | ||
+ | sudo apt-key add / | ||
+ | sudo apt-key add / | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install cuda | ||
+ | </ | ||
+ | ===CUDNN=== | ||
+ | Remarque: Début des essais avec | ||
+ | sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | ||
+ | qui n' | ||
+ | |||
+ | Il faut avoir un compte sur Nvidia et se loguer pour pouvoir télécharger: | ||
+ | wget -c https:// | ||
+ | |||
+ | Décompresser, | ||
+ | sudo cp -P / | ||
+ | sudo cp / | ||
+ | sudo chmod a+r / | ||
+ | |||
+ | ===Installation de Pytorch=== | ||
+ | < | ||
+ | # creation | ||
+ | conda create -n torch python=3.7 | ||
+ | # installation torch pour cuda 10 | ||
+ | conda install -y pytorch=0.4 torchvision cuda100 -c pytorch | ||
+ | # test gpu install | ||
+ | </ | ||
+ | <code python> | ||
+ | python3 -c ' | ||
+ | </ | ||
+ | < | ||
+ | __init__.py: | ||
+ | Found GPU0 GeForce GTX 765M which is of cuda capability 3.0. | ||
+ | PyTorch no longer supports this GPU because it is too old. | ||
+ | warnings.warn(old_gpu_warn % (d, name, major, capability[1])) | ||
+ | tensor([[0.6618, | ||
+ | [0.9745, 0.8508, 0.0141]], device=' | ||
+ | </ | ||
+ | Ma carte n'est plus toute fraîche ! | ||
+ | ===Installation de TensorFlow=== | ||
+ | < | ||
+ | sudo apt-get install libcupti-dev | ||
+ | sudo pip3 install tensorflow-gpu | ||
+ | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ | ||
+ | python3 -c 'from tensorflow.python.client import device_lib; device_lib.list_local_devices()' | ||
+ | </ | ||
=====Version sur Debian GNU/Linux Version 9 (stretch) 64-bit abandonnée===== | =====Version sur Debian GNU/Linux Version 9 (stretch) 64-bit abandonnée===== | ||
- | Debian GNU/Linux Version 9 (stretch) 64-bit | + | **Le but était de compiler YOLO Darknet.** |
+ | Nous avons installé Bumblebee et bbswitch. Cela ne permet pas d' | ||
**CMake >= 3.8 for modern CUDA support**\\ | **CMake >= 3.8 for modern CUDA support**\\ | ||
Ligne 38: | Ligne 93: | ||
https:// | https:// | ||
Téléchargement et installation de libcudnn7_7.4.2.24-1+cuda10.0_amd64.deb | Téléchargement et installation de libcudnn7_7.4.2.24-1+cuda10.0_amd64.deb | ||
- | Il faut obligatoirement avoir un compte Nvidia et se loguer.\\ | + | Il faut obligatoirement avoir un compte Nvidia et se loguer. |
- | https:// | + | * [[https:// |
- | ou ??\\ | + | ou ?? |
- | https:// | + | * [[https:// |
Téléchargement et décompression de cudnn-10.0-linux-ppc64le-v7.4.2.24.tgz | Téléchargement et décompression de cudnn-10.0-linux-ppc64le-v7.4.2.24.tgz | ||
Ligne 61: | Ligne 116: | ||
make | make | ||
| | ||
- | {{tag> | + | {{tag> |
archives/archive_installation_de_cuda_et_cudnn_sur_un_portable_optimus_avec_debian_9_stretch.1553332065.txt.gz · Dernière modification : 2019/03/23 09:07 de serge