cudaGetDevice()失败。状态:CUDA驱动程序版本不足于CUDA运行时版本 [英] cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
问题描述
l在GPU中运行tensorflow时出现以下错误。
2018-09-15 18:56:51.011724: tensorflow / core / common_runtime / direct_session.cc:158]内部:cudaGetDevice()失败。状态:CUDA驱动程序版本不足以支持CUDA运行时版本
回溯(最近一次调用为最新):
文件 evaluate_sample.py,第160行,在&module;
tf.app.run(main)
文件 /anaconda3/envs/tf/lib/python2.7/site-packages/tensorflow/python/platform/app.py,第125行,在运行
_sys.exit(main(argv))
文件 evaluate_sample.py,第123行,在主
中,tf.Session()为sess:
文件 / anaconda3 / envs / tf / lib / python2.7 / site-packages / tensorflow / python / client / session.py,第1494行,位于__init__
super(会话,自我)中。__init __(目标,图形,配置= config)
文件 /anaconda3/envs/tf/lib/python2.7/site-packages/tensorflow/python/client/session.py,第626行,位于__init__
self._session = tf_session.TF_NewSession(self._graph._c_graph,opts)
tensorflow.python.framework.errors_impl.InternalError:无法创建会话。
以下错误来自哪里?
E tensorflow / core / common_runtime / direct_session.cc:158]内部:cudaGetDevice()失败。状态:CUDA驱动程序版本不足以用于CUDA运行时版本
和
tensorflow.python.framework.errors_impl.InternalError:无法创建会话。
我的版本如下:
张量流为: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
更新nvidia驱动程序可以解决此问题。
您可以检查cuda工具包的兼容性此处。然后从此处下载它来更新nvidia驱动程序。。 p>
I get the following error when l run tensorflow in GPU.
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.
Where do the following errors come from ?
E tensorflow/core/common_runtime/direct_session.cc:158] Internal: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
and tensorflow.python.framework.errors_impl.InternalError: Failed to create session.
Such tha my version of :
tensorflow is : 1.10
cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 390.77 Tue Jul 10 18:28:52 PDT 2018
GCC version: gcc version 7.3.0 (Debian 7.3.0-28)
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Sun_Sep__4_22:14:01_CDT_2016
Cuda compilation tools, release 8.0, V8.0.44
Updating nvidia driver solved this issue.
You can check your cuda toolkit compatiblity here. Then update your nvidia driver by downloading it from here.
这篇关于cudaGetDevice()失败。状态:CUDA驱动程序版本不足于CUDA运行时版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!