简体   繁体   English

GPU tensorflow运行问题

[英]GPU tensorflow running issue

I have installed the GPU tensorflow as the tutorial . 我已经安装了GPU tensorflow作为教程 The relative environment is: 相对环境为:

Ubuntu 14 + cuda8.0 + cudnn5.0 + GeForce Gt 640 (OEM)

The problem is: 问题是:

E tensorflow/stream_executor/cuda/cuda_driver.cc:491] failed call to cuInit: CUDA_ERROR_NO_DEVICE
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:153] retrieving CUDA diagnostic information for host: wangyajie
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:160] hostname: wangyajie
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:185] libcuda reported version is: 352.63.0
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:356] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module  340.98  Mon Sep 19 17:31:03 PDT 2016
GCC version:  gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3) 
"""
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] kernel reported version is: 340.98.0
E tensorflow/stream_executor/cuda/cuda_diagnostics.cc:296] kernel version 340.98.0 does not match DSO version 352.63.0 -- cannot find working devices in this configuration

What can I do to fix it? 我该如何解决? Should I update the DSO? 我应该更新DSO吗? If should, what command should be used? 如果应该,应该使用什么命令?

How to check weather I install the cuda and cudnn correctly? 如何检查天气我正确安装了cuda和cudnn? What command should be used? 应该使用什么命令?

Thanks in advance! 提前致谢! ZhQ Q

No idea how this happened, but your error message states that your NVidia driver kernel module is a different version than CUDA requires. 不知道这是怎么发生的,但是您的错误消息指出您的NVidia驱动程序内核模块与CUDA所需的版本不同。 (Normally, if you install CUDA via apt-get, it checks for this.) To fix this, you should update your driver to 352.63.0. (通常,如果您通过apt-get安装CUDA,它将进行检查。)要解决此问题,您应该将驱动程序更新为352.63.0。 Instructions can be found here: 说明可以在这里找到:

https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia

However, this may not completely fix your problem, since it may prove difficult to get both CUDA and the driver onto the same version if you install them separately. 但是,这可能无法完全解决您的问题,因为如果单独安装CUDA和驱动程序,可能会很难将它们安装在同一版本上。 Instead, you should consider to install both from the same repo, thus re-installing CUDA as well. 相反,您应该考虑从同一存储库安装这两个软件,因此也要重新安装CUDA。

Generally, if possible for you, I'd recommend updating to Ubuntu 16.04 first, since CUDA is much less painful to install there (in my experience, at least). 通常,如果可能的话,我建议首先更新到Ubuntu 16.04,因为CUDA安装在那里的痛苦要小得多(至少以我的经验)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM