简体   繁体   English

Anaconda 中的 Tensorflow-Gpu 和 Cuda 驱动程序存在问题

[英]Problem with Tensorflow-Gpu and Cuda drivers in Anaconda

I have the following problem with Tensorflow-GPU.我对 Tensorflow-GPU 有以下问题。 While trying to setup the gpus (in Jupyter) for a deep learning task, I get the following error:在尝试为深度学习任务设置 gpus(在 Jupyter 中)时,我收到以下错误:

InternalError                             Traceback (most recent call last)
<ipython-input-3-a08c39e19f9e> in <module>
     20     for gpu in gpus:
     21       tf.config.experimental.set_memory_growth(gpu, True)
---> 22     logical_gpus = tf.config.experimental.list_logical_devices('GPU')
     23     print(len(gpus), "Physical GPUs,", len(logical_gpus), "Logical GPUs")
     24   except RuntimeError as e:

~\Anaconda3\envs\tens-gpu\lib\site-packages\tensorflow_core\python\framework\config.py in list_logical_devices(device_type)
    345     List of LogicalDevice objects
    346   """
--> 347   return context.context().list_logical_devices(device_type=device_type)
    348 
    349 

~\Anaconda3\envs\tens-gpu\lib\site-packages\tensorflow_core\python\eager\context.py in list_logical_devices(self, device_type)
   1150   def list_logical_devices(self, device_type=None):
   1151     """Return logical devices."""
-> 1152     self.ensure_initialized()
   1153 
   1154     devices = []

~\Anaconda3\envs\tens-gpu\lib\site-packages\tensorflow_core\python\eager\context.py in ensure_initialized(self)
    490         if self._default_is_async == ASYNC:
    491           pywrap_tensorflow.TFE_ContextOptionsSetAsync(opts, True)
--> 492         self._context_handle = pywrap_tensorflow.TFE_NewContext(opts)
    493       finally:
    494         pywrap_tensorflow.TFE_DeleteContextOptions(opts)

InternalError: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version

My Cuda version is Cuda 10.0.130 and cudnn is 7.6.4, while I have an Intel UHD Graphics 620 and a NVIDIA GeForce MX150 gpus.我的 Cuda 版本是 Cuda 10.0.130,cudnn 是 7.6.4,而我有 Intel UHD Graphics 620 和 NVIDIA GeForce MX150 GPU。 The drivers are updated to the 'optimised' release and I really don't get what is not working.驱动程序已更新到“优化”版本,我真的不明白什么不起作用。 Could you please help me, as I've already tried everything I found online?你能帮我吗,因为我已经尝试了我在网上找到的所有东西? Thank you in advance先感谢您

The reason for this error is the mismatch of your installed CUDA Toolkit version and the version of the python package CUDA toolkit, which is usually installed as dependency of Tensorflow GPU The reason for this error is the mismatch of your installed CUDA Toolkit version and the version of the python package CUDA toolkit, which is usually installed as dependency of Tensorflow GPU

Running a CUDA application requires the system with at least one CUDA capable GPU and a driver that is compatible with the CUDA Toolkit.运行 CUDA 应用程序需要系统具有至少一个支持 CUDA 的 GPU 以及与 ZA33DZ2755E5CAF9B2FF803 兼容的驱动程序。 Please refer details in below请参考下面的详细信息

在此处输入图像描述

Could not load dynamic library 'cudart64_100.dll';无法加载动态库“cudart64_100.dll”; dlerror: cudart64_100.dll not found dlerror: 未找到 cudart64_100.dll

The simplest way to fix is to install the latest NVIDIA GPU Computing Toolkit , because if it's not there, you will be missing the 'cudart64_100.dll' library.最简单的修复方法是安装最新的NVIDIA GPU Computing Toolkit ,因为如果它不存在,您将丢失“cudart64_100.dll”库。

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

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