September 16

How to use GPU of MX150 with Tensorflow 1.8 CUDA 9.2 (Phase 4: Installation GPU Tensorflow package and execution of the first neural network in python program execution)

Reading Time: 2 minutes

In the serie, “How to use GPU with Tensorflow 1.8 and CUDA 9.2”, we are now in the final phase. This step focusses on the installation of GPU Tensorflow 1.8 and the execution of a python program based on the .

The compilation of Tensorflow is not simple. So, I recommend to reserve around 2 hours to make this task. The compilation of the software is structured into 4 steps:

  • Step 1: Installation of the wheel package created in the previous phase and the keras library.
  • Step 2: Creation of the python program using the Keras library (with the configuration of Tensorflow backend).
  • Step 3: Execution of the program and confirmation that the CUDA cores of the graphical card.

Continue reading

September 15

How to use GPU of MX150 with Tensorflow 1.8 CUDA 9.2 (Phase 3: Compilation of Tensorflow 1.8)

Reading Time: 4 minutes

In the serie, “How to use GPU with Tensorflow 1.8 and CUDA 9.2”, we are now in the third phase. This step is related to the compilation of Tensorflow 1.8 by including the library CUDA. This compilation will enable tensorflow to use the GPU core of the graphical card (384 cores). TensorFlow programs typically run significantly faster on a GPU than on a CPU. Therefore, if your system has a NVIDIA GPU and you need to run performance-critical applications, you should ultimately build and install this version. In the previous sections, we already installed the last driver of the graphical card (MX150), theĀ  library CUDNN, and CUPTI to prepare the laptop for the compilation of Tensorflow 1.8. We also check if the library is correctly installed by using the samples available in the package of CUDA.

The compilation of Tensorflow is not simple. So, I recommend to reserve around 2 hours to make this task. The compilation of the software is structured into 4 steps:

  • Step 1: Download the required packages in the Ubuntu repository
  • Step 2: Installation of Blazel. Blazel is an open-source build and test tool similar to Make, Maven, and Gradle.
  • Step 3: Compilation of Tensorflow from the source.
  • Step 4: Creation of the package whl. This package will be deployed in the phase 4.

Continue reading