2016-10-05 173 views
3

我已经使用CUDA和CuDNN安装了TensorFlow。TensorFlow会话错误:内核版本352.63.0与DSO版本361.93.2不匹配

为什么我运行一个会议上,我已经出现以下错误:

``` 
>>> sess = tf.Session() 
E tensorflow/stream_executor/cuda/cuda_driver.cc:491] failed call to cuInit: CUDA_ERROR_INVALID_VALUE 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:153] retrieving CUDA diagnostic information for host: next-gpu1 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:160] hostname: next-gpu1 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:185] libcuda reported version is: 361.93.2 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:347] driver version file contents: """NVRM version: NVIDIA UNIX x86_64 Kernel Module 352.63 Sat Nov 7 21:25:42 PST 2015 
GCC version: gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1) 
""" 
I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:189] kernel reported version is: 352.63.0 
E tensorflow/stream_executor/cuda/cuda_diagnostics.cc:296] kernel version 352.63.0 does not match DSO version 361.93.2 -- cannot find working devices in this configuration 
I tensorflow/core/common_runtime/gpu/gpu_init.cc:81] No GPU devices available on machine. 
``` 

回答

2

的驱动程序的版本比CUDA DSO版本低,所以你得到这个错误。

您可以下载并安装CUDA

./NVIDIA-Linux-x86_64-361.93.2.run的新的驱动程序(可能会停止X窗口第一)

PS:如果解决不了,请重新安装CUDA

参考:https://github.com/tensorflow/tensorflow/issues/4349

+0

如果您在AWS EC2上遇到此问题,您可以在http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances上找到需要下载的驱动程序的指针。 HTML#安装,NVIDIA驱动程序 – user1587520

1

下解决了这个问题,我在AWS EC2:

sudo apt-get update -y 
sudo apt-get upgrade -y linux-aws 
sudo reboot