【问题标题】:Tensorflow-gpu cudnn_cnn_infer64_8.dll not recognised [Error code 193]Tensorflow-gpu cudnn_cnn_infer64_8.dll 无法识别 [错误代码 193]
【发布时间】:2022-01-01 23:32:04
【问题描述】:

当尝试使用 Tensorflow (gpu) 时,它无法运行:

无法加载库 cudnn_cnn_infer64_8.dll。错误代码 193 请确保 cudnn_cnn_infer64_8.dll 在您的库路径中!

问题是,我有这个库:

我已经添加了环境变量:

完整的错误信息

要在其他操作中启用它们,请使用适当的编译器标志重新构建 TensorFlow。 2022-01-02 00:22:39.438945: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] 使用 5468 MB 内存创建设备 /device:GPU:0:-> 设备:0,名称:NVIDIA GeForce RTX 3070,pci 总线 ID:0000:01:00.0,计算能力:8.6 2022-01-02 00:22:40.466945: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] 创建设备 /job:localhost/replica:0/task:0/device:GPU:0 具有 5468 MB 内存: -> 设备:0,名称:NVIDIA GeForce RTX 3070,pci 总线 ID:0000:01:00.0,计算能力:8.6 2022-01-02 00:22:41.646700: I tensorflow/stream_executor/cuda/cuda_blas.cc:1774] TensorFloat-32 将用于矩阵乘法。这只会记录一次。 2022-01-02 00:22:41.780145:我 tensorflow/stream_executor/cuda/cuda_dnn.cc:366] 加载 cuDNN 版本 8301 无法加载库 cudnn_cnn_infer64_8.dll。错误代码 193 请确保 cudnn_cnn_infer64_8.dll 在您的库路径中!

【问题讨论】:

    标签: python tensorflow


    【解决方案1】:

    只是因为我无法正确阅读文档...

    我安装了所有最新版本的 CUDA、cuDNN 和 Tensorflow GPU,但它们不兼容。

    这对我有帮助:https://www.tensorflow.org/install/source_windows?hl=fr

    所以我安装了:

    • tensorflow_gpu-2.6
    • CUDA 11.2
    • cuDNN 8.1

    猜猜看,现在一切正常!

    所以在这种情况下:

    无法加载库 cudnn_cnn_infer64_8.dll。错误代码 126

    无法加载库 cudnn_cnn_infer64_8.dll。错误代码 193

    使用推荐版本重新安装 CUDA,不要忘记更新 PATH

    【讨论】:

      【解决方案2】:

      我的情况。 PATH 已复制。

      错误
      PATH=****;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\libnvvp;***** ;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\libnvvp;

      正确
      PATH=****;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\libnvvp;

      cuda 安装程序添加路径。重复的路径通常会导致错误。

      【讨论】:

        猜你喜欢
        • 2021-12-21
        • 2020-01-14
        • 1970-01-01
        • 1970-01-01
        • 2023-03-12
        • 2020-06-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多