Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version '8.9.5.29-1+cuda12.1' for 'libcudnn8' was not found #718

Open
FlatMapIO opened this issue Oct 9, 2023 · 3 comments · May be fixed by #1126
Open

Version '8.9.5.29-1+cuda12.1' for 'libcudnn8' was not found #718

FlatMapIO opened this issue Oct 9, 2023 · 3 comments · May be fixed by #1126
Assignees
Labels
enhancement New feature or request

Comments

@FlatMapIO
Copy link

It looks like the cudnn install script needs to be changed to accommodate different version combinations.

Here is the discussion: https://forums.developer.nvidia.com/t/e-version-8-3-1-22-1-cuda10-2-for-libcudnn8-was-not-found/200801/30

config file:

{
  "$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json",
  "name": "pytorch-devcontainer",
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
  "features": {
    "ghcr.io/devcontainers/features/nvidia-cuda:1": {
      "cudaVersion": "12.1",


      "installCudnn": true,
      // https://developer.nvidia.com/rdp/cudnn-download
      "cudnnVersion": "8.9.5.29"
    },
}
@FlatMapIO
Copy link
Author

FlatMapIO commented Oct 9, 2023

I think it is unnecessary to specify the cudnn version externally. I use this method to find the highest matching version:

DISTRO=ubuntu2204
ARCH=x86_64

CUDA_VERSION=${CUDAVERSION:-12.1}

CUDNN_VERSION=$(apt-cache policy libcudnn8 | grep "$CUDA_VERSION" | grep -Eo '^[^-1+]*' | sort -V | tail -n1)

@samruddhikhandale
Copy link
Member

Hi 👋

Currently, the nvidia-cuda Feature expects cudaVersion and cudnnVersion to install tools correctly (ensure compatabolity). However, I agree that we should update it to automatically find a compatible version.

@FlatMapIO would you be interested in contributing a PR with the enhancement changes? We'd appreciate that, thanks!

@samruddhikhandale samruddhikhandale added the enhancement New feature or request label Oct 9, 2023
@prathameshzarkar9 prathameshzarkar9 self-assigned this Sep 22, 2024
@prathameshzarkar9 prathameshzarkar9 linked a pull request Sep 23, 2024 that will close this issue
1 task
@prathameshzarkar9
Copy link
Contributor

Hi @samruddhikhandale ,
Created PR #1126

@samruddhikhandale samruddhikhandale linked a pull request Sep 25, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants