linux_compiler_tensorflow_avec_bazel
Ceci est une ancienne révision du document !
Table des matières
Linux Compiler Tensorflow avec Bazel
Les téléchargements sont très gros: ce sont des paquets de 500 Mo !
Ressources
Contexte
- Ubuntu Mate 20.04
- python 3.8
- venv
L'objectif est de compiler Tensorflow avec les options AVX2 et FMA !
Cuda
CudNN
sudo apt install libcudnn8 libcudnn8-dev
Bazel et Tensorflow
# Bazel sudo apt install apt-transport-https curl gnupg curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list sudo apt update sudo apt install bazel # Dépendances python3 -m pip install numpy wheel python3 -m pip install keras_preprocessing --no-deps # Récupération des sources de tensorflow mkdir src cd src/ git clone https://github.com/tensorflow/tensorflow.git cd tensorflow ./configure
linux_compiler_tensorflow_avec_bazel.1639039276.txt.gz · Dernière modification : 2021/12/09 08:41 de serge