where is the ./configure of TensorFlow and how to enable the GPU support?

fluency03 picture fluency03 · Nov 11, 2015 · Viewed 19.1k times · Source

When installing TensorFlow on my Ubuntu, I would like to use GPU with CUDA.

But I am stopped at this step in the Official Tutorial :

enter image description here

Where exactly is this ./configure ? Or where is my root of source tree.

My TensorFlow is located here /usr/local/lib/python2.7/dist-packages/tensorflow. But I still did not find ./configure.

EDIT

I have found the ./configure according to Salvador Dali's answer. But when doing the example code, I got the following error:

>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> 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

The cuda device cannot be found.

Answer

See the answer about how did I enable GPU support here.

Answer

Salvador Dali picture Salvador Dali · Nov 11, 2015

This is a bash script which suppose to be in

the root of your source tree

when you cloned the repo. Here it is https://github.com/tensorflow/tensorflow/blob/master/configure