python configure_python – TensorFlow的./configure在哪里以及如何启用GPU支持?

在我的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的答案.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值