Install Python 3.5 and pip if you do not already have it
Install CUDA 8.0 Install cuDNN 5
pip install virtualenv
mkdir ~/ve
cd ~/ve
Note: depending on your env, you may need to specify python3.5 explicitly
virtualenv -p `which python3` keras
pip install numpy scipy pandas jupyter
pip install tensorflow-gpu
pip install tensorflow
Note: I was able to do this with the very simple pip call. The Tensorflow install instructions used to call for pointed to a specific TF_BINARY_URL, but it seems that is no longer necessary
ipython
In [1]: import tensorflow
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
In [2]: import keras
Using TensorFlow backend.
After this, I also like to pull up a small Keras model and train it while watching my GPU to make sure it hasn't defaulted to CPU mode (it does this sometimes and it drives me nuts!)
watch -n1 nvidia-smi