Unverified Commit bb7b7ea2 authored by Prathamesh Zarkar's avatar Prathamesh Zarkar Committed by GitHub

upgrade cuda version to 11.7 and cudnn to 8.5.0 (#942)

upgrade cuda version 11.7 and cudnn 8.5.0
parent 6f4e5986
{ {
"id": "nvidia-cuda", "id": "nvidia-cuda",
"version": "1.1.1", "version": "1.1.2",
"name": "NVIDIA CUDA", "name": "NVIDIA CUDA",
"description": "Installs shared libraries for NVIDIA CUDA.", "description": "Installs shared libraries for NVIDIA CUDA.",
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/nvidia-cuda", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/nvidia-cuda",
......
...@@ -12,6 +12,8 @@ INSTALL_TOOLKIT=${INSTALLTOOLKIT} ...@@ -12,6 +12,8 @@ INSTALL_TOOLKIT=${INSTALLTOOLKIT}
CUDA_VERSION=${CUDAVERSION} CUDA_VERSION=${CUDAVERSION}
CUDNN_VERSION=${CUDNNVERSION} CUDNN_VERSION=${CUDNNVERSION}
. /etc/os-release
if [ "$(id -u)" -ne 0 ]; then if [ "$(id -u)" -ne 0 ]; then
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.' echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.'
exit 1 exit 1
...@@ -33,6 +35,11 @@ check_packages() { ...@@ -33,6 +35,11 @@ check_packages() {
fi fi
} }
if [ $VERSION_CODENAME = "bookworm" ] || [ $VERSION_CODENAME = "jammy" ] && [ $CUDA_VERSION \< 11.7 ]; then
echo "(!) Unsupported distribution version '${VERSION_CODENAME}' for CUDA < 11.7"
exit 1
fi
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
check_packages wget ca-certificates check_packages wget ca-certificates
......
...@@ -5,11 +5,11 @@ set -e ...@@ -5,11 +5,11 @@ set -e
# Optional: Import test library # Optional: Import test library
source dev-container-features-test-lib source dev-container-features-test-lib
# Check installation of libcudnn8 (8.3.2) # Check installation of libcudnn8 (8.5.0)
check "libcudnn.so.8.3.2" test 1 -eq "$(find /usr -name 'libcudnn.so.8.3.2' | wc -l)" check "libcudnn.so.8.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.8.5.0' | wc -l)"
# Check installation of cuda-nvtx-11-5 (11.5) # Check installation of cuda-nvtx-11-7 (11.7)
check "cuda-11-5+nvtx" test -e '/usr/local/cuda-11.5/targets/x86_64-linux/include/nvtx3' check "cuda-11-7+nvtx" test -e '/usr/local/cuda-11.7/targets/x86_64-linux/include/nvtx3'
# Report result # Report result
reportResults reportResults
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
"nvidia-cuda": { "nvidia-cuda": {
"installCudnn": true, "installCudnn": true,
"installNvtx": true, "installNvtx": true,
"cudaVersion": "11.5", "cudaVersion": "11.7",
"cudnnVersion": "8.3.2.44" "cudnnVersion": "8.5.0.96"
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment