在我的Ubuntu上安装TensorFlow时,我想使用GPU与CUDA.
这个./configure在哪里?或者我的根源在哪里.
我的TensorFlow位于/usr/local/lib/python2.7/dist-packages/tensorflow.但我还是没有找到./configure.
编辑
我已经找到./configure根据Salvador Dali’s answer.但是当做示例代码时,我得到以下错误:
>>> 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
找不到cuda设备.
回答
查看有关如何启用GPU支持here的答案.