【问题标题】:jupyter nternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime versionjupyter nternalError: cudaGetDevice() 失败。状态:CUDA 驱动程序版本对于 CUDA 运行时版本不足
【发布时间】:2019-08-02 18:07:59
【问题描述】:

我在 Windows 上安装了 anaconda 3.7(遵循本指南:https://www.youtube.com/watch?v=tPq6NIboLSc),然后尝试使用 jupyter notebook 中的 tensorflow (https://github.com/DeepRNN/image_captioning) 运行代码,但我得到了:

内部错误:cudaGetDevice() 失败。状态:CUDA 驱动程序版本对于 CUDA 运行时版本不足

在寻找我的 cuda 版本时:

> 其中cudnn*

C:\Users\\Anaconda3\envs\gptest\Library\bin\cudnn64_7.dll

 (gputest) C:\windows\system32>pip show tensorflow
Name: tensorflow
Version: 1.13.1
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: c:\users\...\anaconda3\envs\gputest\lib\site-packages
Requires: numpy, keras-applications, grpcio, gast, six, tensorboard, keras-preprocessing, termcolor, absl-py, astor, protobuf, wheel, tensorflow-estimator
Required-by:

【问题讨论】:

    标签: tensorflow anaconda jupyter


    【解决方案1】:
    1. 更新 NVIDIA 驱动程序可能会解决您的问题。
    2. 也许您必须首先将您的 tensorflow 版本与您安装的 Cuda Toolkit 相匹配 如图所示的版本here

    【讨论】:

    • 将尝试同步版本。顺便说一句,我不需要 Windows 链接:tensorflow.org/install/source_windows? (您附加的那个是用于 linux/mac os 的)...是否需要在我的 Windows 上安装 GPU 计算工具包(developer.nvidia.com/cuda-downloads)或者它已经是 anaconda 虚拟环境的一部分(我运行了> conda install tensorflow-显卡)
    • 已解决。在我的电脑上安装 GPU 解决了它。 (我认为它将成为 anaconda env 的一部分)
    猜你喜欢
    • 2019-02-20
    • 2019-12-31
    • 2011-03-16
    • 1970-01-01
    • 2017-05-15
    • 1970-01-01
    • 2021-02-07
    • 2017-03-07
    • 2017-04-14
    相关资源
    最近更新 更多