Building Tensorflow from source on Linux for maximum performance:
TensorFlow is now distributed under an Apache v2 open source license on GitHub.
Step 1. Install NVIDIA CUDA:
To use TensorFlow with NVIDIA GPUs, the first step is to install the CUDA Toolkit.
Step 2. Install NVIDIA cuDNN: