Changes

Jump to navigation Jump to search
==Using Tensorflow==
It is important to know that, on DB Server, Tensorflow-gpu 1.9.0 is installed for ''python3.6'', instead of either the default ''python3'' which is Python 3.5, or the default ''python'' which is Python 2.7 . In case that the system default ''python3'' might be changed, type in terminal to find out:
which python3
and
A quick test of whether tensorflow-gpu is working for ''python3.6'', type the following into a terminal:
python3.6 -c "import tensorflow as tf; sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))"
This will report back which CPU and GPU devices the tensorflow is using. If there is no information for the GPU device, there is something wrong.
So far it does not affect the functionality of tensorflow, but it will probably affect libcupti-dev library.
==Tensorflow (with GPU support) Installationin a virtual environment==We followed this instruction here: https://www.tensorflow.org/install/install_linux#InstallingVirtualenv to install tensorflow.===Install Tensorflow using the Virtual EnvironmentInstallation===
Install on DBServer under the user McNair. Password: askEd
*1.install virtualenv:
[[FILE:TensorflowGPU.png]]
==Installing Tensorflow with GPU support Installation as root for All users==
'''Important note: Currently on DB Server, pip/pip3 is working with Python3.6 rather than Python3. Hence the following installs a copy of tensorflow-gpu 1.9.0 for Python3.6 for all users'''
===Installation===
We followed instructions here: https://www.tensorflow.org/install/install_linux#InstallingNativePip
 
*0. Deleted previously installed tensorflow with CPU support:
sudo pip3 uninstall tensorflow

Navigation menu