title: where is the ./configure of TensorFlow and how to enable the GPU support?
body: <p>When installing TensorFlow on my Ubuntu, I would like to use GPU with CUDA. </p>
  
  <p>But I am stopped at this step in the <a href="http://www.tensorflow.org/get_started/os_setup.md" rel="nofollow noreferrer">Official Tutorial</a> :</p>
  
  <p><a href="https://i.stack.imgur.com/dmwOC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dmwOC.png" alt="enter image description here"></a></p>
  
  <p>Where exactly is this <code>./configure</code> ? Or where is my root of source tree.</p>
  
  <p>My TensorFlow is located here <code>/usr/local/lib/python2.7/dist-packages/tensorflow</code>.   But I still did not find <code>./configure</code>.  </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have found the <code>./configure</code> according to <a href="https://stackoverflow.com/a/33659119/4802797">Salvador Dali's answer</a>. But when doing the example code, I got the following error:</p>
  
  <pre><code>&gt;&gt;&gt; import tensorflow as tf
  &gt;&gt;&gt; hello = tf.constant('Hello, TensorFlow!')
  &gt;&gt;&gt; sess = tf.Session()
  I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 8
  E tensorflow/stream_executor/cuda/cuda_driver.cc:466] failed call to cuInit: CUDA_ERROR_NO_DEVICE
  I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:86] kernel driver does not appear to be running on this host (cliu-ubuntu): /proc/driver/nvidia/version does not exist
  I tensorflow/core/common_runtime/gpu/gpu_init.cc:112] DMA: 
  I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 8
  </code></pre>
  
  <p>The cuda device cannot be found. </p>
  
  <p><strong>Answer</strong></p>
  
  <p>See the answer about how did I enable GPU support <a href="https://stackoverflow.com/a/36089757/4802797">here</a>.</p>