[PYTHON] [0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu

goal

From the place where Ubuntu Desktop / Server is installed, build an environment that can perform GPU calculation by TensorFlow with Anaconda.

Target person

Deep learning engineer who is unfamiliar with Linux and does not understand virtual environments such as Anaconda

equipment

OS: Ubuntu 18.04LTS Desktop/Server

Motivation for this article

I myself wanted to do deep learning on Ubuntu Server, so I built an environment to run the GPU version of TensorFlow, but I was overwhelmed by the number of points to collect information and pay attention to. Therefore, I hope to reduce the pain of connecting knowledge by going back and forth between various pages and by providing a set of information for people with the same aspirations as a memorandum of their own. Therefore, I created a document that explained my knowledge and points of reflection in the process of building the environment.

Document structure

We divided the environment construction into four conditions. I will explain one condition in one article so as not to be complicated. The documentation, including this chapter, is a five-part document (I may also write a sequel to Jupyter Notebook).

This section describes ** 4 conditions ** for building an environment. Clear from top to bottom to run the GPU version of TensorFlow (TensorFlow-GPU).

  1. Equipped with a relatively new GPU (manufactured by nVidia) that has the computing power to perform deep learning.
  2. The appropriate driver for the GPU is installed and ready for use.
  3. An environment has been created to store tensorflow-gpu, GPU drivers (CUDA), and deep learning libraries (cuDNN).
  4. Python and each of the conditions 2. must be version compatible

The table of contents is set up according to each condition. You can clear the conditions by working from the top.

[1] TensorFlow-GPU environment built with Anaconda on Ubuntu-GPU spec confirmation-

TensorFlow requires a certain amount of computing power from the GPU. First, let's check in the first article whether the conditions are met.

[2] TensorFlow-GPU environment built with Anaconda on Ubuntu ~ nVidia driver installation ~

In order to use the GPU of the server for calculation, it is necessary to install a dedicated driver in the OS. Since it is a barrier, I will explain it in detail in the second article.

[3] TensorFlow-GPU environment construction built with Anaconda on Ubuntu-Anaconda virtual environment creation-

In addition, there are libraries needed to use the GPU for deep learning. In order to create a foundational environment to accept them, in the third article we will build a virtual environment (described in the article) with Anaconda.

[4] TensorFlow-GPU environment construction built with Anaconda on Ubuntu

~ CUDA, cuDNN installation ~ Finally, in the fourth article, we will install the library on a virtual environment. At this time, if the versions are not compatible, it will not work properly, so I will explain it in one article.

*** First of all [1] TensorFlow-GPU environment built with Anaconda on Ubuntu-GPU spec confirmation- It starts from. *** ***

Recommended Posts

[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Anaconda environment construction on CentOS7
Anaconda python environment construction on Windows 10
Anaconda environment construction on Mac (2018 version)
Environment construction of "Tello_Video" on Ubuntu
OpenCV3 & Python3 environment construction on Ubuntu
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Vue.js + Flask environment construction memorandum ~ with Anaconda3 ~
Build Python environment with Anaconda on Mac
MacOS 10.11 environment construction: Powerline with Anaconda and Dein.vim
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Anaconda environment construction memo
From Python environment construction to virtual environment construction with anaconda
Ubuntu 16.04 LTS, beginner memorandum of environment construction to switch anaconda version with pyenv
[Environment construction] @anaconda that runs keras / tensorflow on GPU
I made a Python3 environment on Ubuntu with direnv.
Notes on creating a virtual environment with Anaconda Navigator
[Ubuntu 18.04] Tensorflow 2.0.0-GPU environment construction
Python + Anaconda + Pycharm environment construction
Install Python environment with Anaconda
Build python3 environment with ubuntu 16.04
Anaconda3 python environment construction procedure
Anaconda3 × Pycharm environment construction memo
Ubuntu14.04 + GPU + TensorFlow environment construction
[Tensorflow] Tensorflow environment construction on Windows 10
Linux environment construction (on WSL environment)
Python environment construction on Mac (pyenv, virtualenv, anaconda, ipython notebook)
OpenJTalk on Windows10 (Speak Japanese with Python from environment construction)
Python environment construction memo on Windows 10
Get started with Python! ~ ① Environment construction ~
tensor flow with anaconda on mac
Prepare Python development environment on Ubuntu
ruby environment construction with aws EC2
Building a Python environment on Ubuntu
Draw Japanese with matplotlib on Ubuntu
Easy Jupyter environment construction with Cloud9
Python environment construction memo on Mac
Mount S3 on Ubuntu with goofys
Python environment construction (pyenv, anaconda, tensorflow)
Python development environment construction on macOS
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
[Linux] Docker environment construction on Redhat
Environment construction of python3.8 on mac
Automate environment construction with Shell Script
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
From Ubuntu 20.04 introduction to environment construction
Using Chainer with CentOS7 [Environment construction]
Ubuntu Desktop 20.04 development environment construction memo
pytorch @ python3.8 environment construction with pipenv
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Data science environment construction with Docker
Python3.6 environment construction (using Win environment Anaconda)
Environment construction with pyenv and pyenv-virtualenv
Build a Python environment on your Mac with Anaconda and PyCharm
Environment construction of TensorFlow + JupyterNotebook + Matplotlib on Windows version Anaconda (August 2017 version)
[Pyenv] Building a python environment with ubuntu 16.04
[Python] Building an environment with Anaconda [Mac]
Python (anaconda) development environment construction procedure (SpringToolsSuites) _2020.4
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]