python - 张量流错误。CUDA 驱动程序版本对于 CUDA 运行时版本不足
问题描述
我收到错误消息:
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
2018-08-14 14:35:53.739970: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-08-14 14:35:53.948699: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-08-14 14:35:53.949210: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: Tesla K80 major: 3 minor: 7 memoryClockRate(GHz): 0.8755
pciBusID: 0000:00:05.0
totalMemory: 11.17GiB freeMemory: 11.11GiB
2018-08-14 14:35:53.949241: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-08-14 14:35:53.949419: E tensorflow/core/common_runtime/direct_session.cc:158] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1494, in __init__
super(Session, self).__init__(target, graph, config=config)
File "/usr/local/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 626, in __init__
self._session = tf_session.TF_NewSession(self._graph._c_graph, opts)
tensorflow.python.framework.errors_impl.InternalError: Failed to create session.
在以下环境中做。
- 特斯拉K80 GPU机器
- Ubuntu 16.04
- CUDA 9.0
- cudnn7=7.1.4.18
- 蟒蛇 3.6.6
- 张量流 1.10
有人可以帮帮我吗?
解决方案
您需要更新您的 GPU 驱动程序。CUDA 9.0 需要驱动程序版本 384.XX。
推荐阅读
- apache-spark - 火花是否异步写入数据帧
- python - 如何从 Python 连接到 Oracle Exadata?
- c - 输出是否总是由 C 中的内联汇编中的 %eax 寄存器确定?
- python - 问题 dtyping 3 维结构化数组
- c++ - 编译 c++ 文件时出现“找不到命令”
- css - BEM 和 css 框架
- hyperledger-fabric - 使用 Hyperledger Fabric 添加自定义节点 OU
- node.js - Node js Rest API 不工作 - 共享主机服务器 - Plesk
- google-sheets - 使用 Google 表格中的 arrayformula() 在每一行上查找 min() 值
- ios - createFile 失败时如何获取根本原因?