Legacy Archive (2017): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

TensorFlow Setup Notes - 00

Original Chinese title: tensorflow折腾小计-00

PyCUDA

Like Glophy Zone Backup mentions, I originally thought that if you already know Python, just learning PyCUDA would be enough to get started with GPU programming. Only when I actually got into the basics and saw a module snippet did I realize it mainly handles data exchange—to really put it to use, you still have to learn CUDA.

Installation Issues

Import error with the GPU version:
On Windows, running “import tensorflow” generates No module named “_pywrap_tensorflow” error - Stack Overflow

TensorFlow Resources – Chinese Edition | | URl-team

CUDA - Wikipedia gives a detailed breakdown of the differences between CUDA versions. The lab’s GTX 480 supports compute capability 2.0. Unfortunately, that’s below the supported threshold, so I swapped it out for a GTX 780. I also have a 1060 6GB at home. Not sure how compute cards compare against gaming GPUs here.

NVIDIA cuDNN | NVIDIA Developer
CUDNN DNN (deep neural networks)
You need this library to train models.

What Raising pool\_size\_limit\_ from means—explained pretty clearly for GPU beginners:
machine learning - How to interpret Poolallocator messages in tensorflow? - Stack Overflow

Downgrading to GCC 4.8 on Ubuntu 16.04 LTS - Linux Tutorial
Ubuntu 16.04 ships with GCC 6, and downgrading to anything below 5 works fine.

Installing GPU TensorFlow on Ubuntu 16.04 (Including CUDA and cuDNN) - Suzhou GDG - SegmentFault

pip3 install nltk requires root privileges to install. Same goes for setuptools—you have to run sudo su.
python - No module named pkg_resources - Stack Overflow

Conchylicultor/DeepQA: My tensorflow implementation of “A neural conversational model”, a Deep learning based chatbot

Installing NVIDIA Drivers on Ubuntu 16.04 — if you hit an infinite login loop, uninstalling the driver fixes it.

Even better: run Ubuntu Server without a GUI. It flies.