gpt4 book ai didi

TensorFlow session 错误 : kernel version 352. 63.0 与 DSO 版本 361.93.2 不匹配

转载 作者:行者123 更新时间:2023-12-03 14:30:09 24 4
gpt4 key购买 nike

我已经安装了带有 CUDA 和 CuDNN 的 TensorFlow。

为什么我运行 session 我有以下错误:

```
>>> 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.
```

最佳答案

驱动程序版本低于 cuda dso 版本,因此您会收到此错误。

可以下载安装cuda的新驱动

./NVIDIA-Linux-x86_64-361.93.2.run(可能先停止X窗口)

PS:如果无法解决,请重新安装cuda

引用:https://github.com/tensorflow/tensorflow/issues/4349

关于TensorFlow session 错误 : kernel version 352. 63.0 与 DSO 版本 361.93.2 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39863971/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com