devcontainers / devcontainers/features

Cuda 11.7 fails to install

Offen
#484 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Shell
Sterne
1.5k
Forks
621
Ø Merge
6 T. 53 Min.
Gemergte PRs (30 T.)
9

Beschreibung

Hi I am running this devcontainer json:

```
{
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"ms-python.isort"
]
}
},
"features": {
"ghcr.io/devcontainers/features/nvidia-cuda:1": {
"installCudnn": true,
"cudaVersion": "11.7"
}
}
}
```

Doing that sends the container into recovery mode.

The error log it gave me is:

```
2023-03-10 14:17:55.692Z: > [dev_containers_target_stage 4/4] RUN cd /tmp/build-features/nvidia-cuda_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh:
#16 68.98 Setting up libcurand-11-7 (10.2.10.91-1) ...

#16 69.08 Setting up libcufile-11-7 (1.3.1.18-1) ...

#16 69.18 Setting alternatives

#16 69.19 update-alternatives: using /usr/local/cuda-11.7/gds/cufile.json to provide /etc/cufile.json (cufile.json) in auto mode

#16 69.28 Setting up cuda-libraries-11-7 (11.7.1-1) ...

#16 69.38 Processing triggers for libc-bin (2.31-0ubuntu9.9) ...

#16 76.39 E: Version '8.6.0.163-1+cuda11.7' for 'libcudnn8' was not found
#16 76.39 E: No packages found
#16 76.40 The requested version of cuDNN is not available: cuDNN 8.6.0.163 for CUDA 11.7
#16 76.40 ERROR: Feature "NVIDIA CUDA" (ghcr.io/devcontainers/features/nvidia-cuda) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/nvidia-cuda for help troubleshooting this error.
```

It seems to default to the wrong cudnn version and I would expect it to pick a compatible one for cuda.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der Dokumentation und dem Quellcode des nvidia-cuda-Features unter src/nvidia-cuda und verwende die bereitgestellte devcontainer.json sowie das Installationsprotokoll als Reproduktion. Prüfe, wie cudaVersion 11.7 die cuDNN-Paketversion auswählt, und verifiziere, dass das angeforderte Paket verfügbar ist. Als abgeschlossen gilt, wenn das Feature CUDA 11.7 mit cuDNN installiert, ohne in den Wiederherstellungsmodus zu wechseln.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
devops
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.