Following this link
I already have NVIDIA drivers and CUDA installed. Won't be explaining them here.
Steps:
$ git clone https://github.com/tensorflow/tensorflow
$ cd tensorflow
$ git checkout
- You need to install bazel. Follow these instructions