首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么Tensorflow 1.11.0返回CUDA_ERROR_NOT_SUPPORTED?

为什么Tensorflow 1.11.0返回CUDA_ERROR_NOT_SUPPORTED?
EN

Stack Overflow用户
提问于 2018-11-15 00:19:47
回答 1查看 468关注 0票数 0

我的机器是Ubuntu18.04.1 LTS,已经成功安装了CUDA。$nvcc --version的输出是

代码语言:javascript
运行
复制
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

我有两个Tesla K80的GPU,命令nvidia-smi显示:

nvidia-smi的产量

我还尝试使用来自./deviceQueryNVIDIA_CUDA-9.0_Samples进行测试,其输出如下:

代码语言:javascript
运行
复制
CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 2 CUDA Capable device(s)`

...

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.0, CUDA Runtime Version = 9.0, NumDevs = 2
Result = PASS

但是,一旦我从pip安装了Tensorflow GPU version 1.11.0,我就无法打开Tensorflow会话。

代码语言:javascript
运行
复制
>>> import tensorflow as tf
>>> sess = tf.Session()

它的产出是:

代码语言:javascript
运行
复制
2018-11-15 00:13:46.593039: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/quoctin.phan/tools/anaconda/envs/tensorflow_1.11/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1511, in __init__
    super(Session, self).__init__(target, graph, config=config)
  File "/home/quoctin.phan/tools/anaconda/envs/tensorflow_1.11/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 634, in __init__
    self._session = tf_session.TF_NewSessionRef(self._graph._c_graph, opts)
tensorflow.python.framework.errors_impl.InternalError: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_NOT_SUPPORTED: operation not supported

我尝试重新安装Tensorflow 1.12.0,但是没有什么改变。谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2018-12-15 21:58:28

您认为您的问题可能与计算能力有某种联系吗?这个问题用这里描述。

您可以在运行deviceQuery.exe时检查它们。这里是关于在CUDA包的windows发行版上找到它的一条线索。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53310724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档