Skip to content

Commit e577d5f

Browse files
upgrade cuda version 11.7 and cudnn 8.5.0
1 parent 760f2bf commit e577d5f

4 files changed

Lines changed: 14 additions & 7 deletions

File tree

src/nvidia-cuda/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "nvidia-cuda",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"name": "NVIDIA CUDA",
55
"description": "Installs shared libraries for NVIDIA CUDA.",
66
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/nvidia-cuda",

src/nvidia-cuda/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ INSTALL_TOOLKIT=${INSTALLTOOLKIT}
1212
CUDA_VERSION=${CUDAVERSION}
1313
CUDNN_VERSION=${CUDNNVERSION}
1414

15+
. /etc/os-release
16+
1517
if [ "$(id -u)" -ne 0 ]; then
1618
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
1719
exit 1
@@ -33,6 +35,11 @@ check_packages() {
3335
fi
3436
}
3537

38+
if [ $VERSION_CODENAME = "bookworm" ] || [ $VERSION_CODENAME = "jammy" ] && [ $CUDA_VERSION \< 11.7 ]; then
39+
echo "(!) Unsupported distribution version '${VERSION_CODENAME}' for CUDA < 11.7"
40+
exit 1
41+
fi
42+
3643
export DEBIAN_FRONTEND=noninteractive
3744

3845
check_packages wget ca-certificates

test/nvidia-cuda/install_cudnn_nvxt_version.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -e
55
# Optional: Import test library
66
source dev-container-features-test-lib
77

8-
# Check installation of libcudnn8 (8.3.2)
9-
check "libcudnn.so.8.3.2" test 1 -eq "$(find /usr -name 'libcudnn.so.8.3.2' | wc -l)"
8+
# Check installation of libcudnn8 (8.5.0)
9+
check "libcudnn.so.8.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.8.5.0' | wc -l)"
1010

11-
# Check installation of cuda-nvtx-11-5 (11.5)
12-
check "cuda-11-5+nvtx" test -e '/usr/local/cuda-11.5/targets/x86_64-linux/include/nvtx3'
11+
# Check installation of cuda-nvtx-11-7 (11.7)
12+
check "cuda-11-7+nvtx" test -e '/usr/local/cuda-11.7/targets/x86_64-linux/include/nvtx3'
1313

1414
# Report result
1515
reportResults

test/nvidia-cuda/scenarios.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"nvidia-cuda": {
1717
"installCudnn": true,
1818
"installNvtx": true,
19-
"cudaVersion": "11.5",
20-
"cudnnVersion": "8.3.2.44"
19+
"cudaVersion": "11.7",
20+
"cudnnVersion": "8.5.0.96"
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)