Skip to content

RuntimeError: cuDNN version incompatibility #815

Description

@cameronk

cog version 0.4.4 (built 2022-09-23T19:52:35Z)

Problem

I'm attempting to build and run a container on one of GCP's premade machine images.

c0-deeplearning-common-cu110-v20221107-debian-10
Google, Debian 10 based Deep Learning VM with , M100, Base CUDA 11.0, Deep Learning VM Image with CUDA 11.0 preinstalled.
build:
  gpu: true
  python_version: "3.8"
  python_packages:
    - pyannote.audio==2.1.1
  system_packages:
    - "ffmpeg"
    - "libsndfile1"
predict: "predict.py:Predictor"

The container builds but fails when running:

RuntimeError: cuDNN version incompatibility: PyTorch was compiled  against (8, 5, 0) but found runtime version (8, 1, 1). 
PyTorch already comes bundled with cuDNN. 
One option to resolving this error is to ensure PyTorch can find the bundled cuDNN.
one possibility is that there is a conflicting cuDNN in LD_LIBRARY_PATH.

Debugging

$ cog run python
>>> import torch
>>> torch.__version__
'1.13.0+cu117'
$ cog run whereis cudnn.h
cudnn: /usr/include/cudnn.h
$ cog run nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:12:58_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0

Verifying the installed version of cudnn (see here):

$ docker run --interactive cog-speaker-diarization sh -c "cat /usr/include/x86_64-linux-gnu/cudnn_v*.h | grep CUDNN_MAJOR -A 2   "
#define CUDNN_MAJOR 8
#define CUDNN_MINOR 1
#define CUDNN_PATCHLEVEL 1
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#endif /* CUDNN_VERSION_H */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions