python-2.7 - cudaGetDevice() 失败。状态:CUDA 驱动程序版本对于 CUDA 运行时版本不足
问题描述
当我在 GPU 中运行 tensorflow 时出现以下错误。
2018-09-15 18:56:51.011724: 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 "evaluate_sample.py", line 160, in <module>
tf.app.run(main)
File "/anaconda3/envs/tf/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "evaluate_sample.py", line 123, in main
with tf.Session() as sess:
File "/anaconda3/envs/tf/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1494, in __init__
super(Session, self).__init__(target, graph, config=config)
File "/anaconda3/envs/tf/lib/python2.7/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.
以下错误来自哪里?
E tensorflow/core/common_runtime/direct_session.cc:158] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
和 tensorflow.python.framework.errors_impl.InternalError: Failed to create session。
这样我的版本:
张量流是:1.10
cat /proc/driver/nvidia/version
NVRM 版本:NVIDIA UNIX x86_64 内核模块 390.77 Tue Jul 10 18:28:52 PDT 2018
GCC 版本:gcc 版本 7.3.0 (Debian 7.3.0-28)
nvcc --version
nvcc:NVIDIA (R) Cuda 编译器驱动程序
版权所有 (c) 2005-2016 NVIDIA Corporation
基于 Sun_Sep__4_22:14:01_CDT_2016
Cuda编译工具,发布8.0,V8.0.44
解决方案
推荐阅读
- shopware - 在商店商店上传插件(插件的基本 composer.json 文件不在预期的文件夹中)
- excel - 保存没有宏的工作簿
- c# - 使列表可拖放
- r - 从 R 中的数据框列中删除特定单词
- java - 制作 gradle 依赖任务以在其结果中排除测试依赖项
- python - 将文本文件从 linux 复制到 python 变量
- javascript - 如何在每次提取中使用相同的 PHP 会话?
- npm - 将参数从节点文件发送到 package.json 脚本命令
- python - 从 csv 文件生成随机样本,同时跳过具有某些值的行
- csv - 将 pyspark 与 Neo4j 连接