Unverified Commit 8f42e094 authored by Kaniska's avatar Kaniska Committed by GitHub

[nvidia-cuda] - Cudnn install script issue, unable to fetch latest version of...

[nvidia-cuda] - Cudnn install script issue, unable to fetch latest version of libcudnn9 library (#1275)

nvidia-cuda fix for Issue #1270
parent a9f7f0fb
...@@ -74,7 +74,7 @@ if [ "$CUDNN_VERSION" = "automatic" ]; then ...@@ -74,7 +74,7 @@ if [ "$CUDNN_VERSION" = "automatic" ]; then
if [[ "$CUDA_VERSION" < "12.3" ]]; then if [[ "$CUDA_VERSION" < "12.3" ]]; then
CUDNN_VERSION=$(apt-cache policy libcudnn8 | grep "$CUDA_VERSION" | grep -Eo '^[^-1+]*' | sort -V | tail -n1 | xargs) CUDNN_VERSION=$(apt-cache policy libcudnn8 | grep "$CUDA_VERSION" | grep -Eo '^[^-1+]*' | sort -V | tail -n1 | xargs)
else else
CUDNN_VERSION=$(apt-cache policy libcudnn9-cuda-$major_cuda_version | grep "Candidate" | awk '{print $2}' | grep -Eo '^[^-1+]*') CUDNN_VERSION=$(apt-cache policy libcudnn9-cuda-$major_cuda_version | grep "Candidate" | awk '{print $2}' | grep -Eo '^[^-+]*')
fi fi
fi fi
major_cudnn_version=$(echo "${CUDNN_VERSION}" | cut -d '.' -f 1) major_cudnn_version=$(echo "${CUDNN_VERSION}" | cut -d '.' -f 1)
......
...@@ -5,8 +5,8 @@ set -e ...@@ -5,8 +5,8 @@ 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 libcudnn9-cuda-12 (9.4.0) # Check installation of libcudnn9
check "libcudnn.so.9.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.9.5.0' | wc -l)" check "libcudnn.so.9" test 1 -eq "$(find /usr -name 'libcudnn.so.9' | wc -l)"
# Check installation of cuda-nvtx-12-3 (12.3) # Check installation of cuda-nvtx-12-3 (12.3)
check "cuda-12-3+nvtx" test -e '/usr/local/cuda-12.3/targets/x86_64-linux/include/nvtx3/' check "cuda-12-3+nvtx" test -e '/usr/local/cuda-12.3/targets/x86_64-linux/include/nvtx3/'
......
...@@ -5,8 +5,8 @@ set -e ...@@ -5,8 +5,8 @@ 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 libcudnn9-cuda-12 (9.4.0) # Check installation of libcudnn9
check "libcudnn.so.9.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.9.5.0' | wc -l)" check "libcudnn.so.9" test 1 -eq "$(find /usr -name 'libcudnn.so.9' | wc -l)"
# Check installation of cuda-nvtx-12-4 (12.4) # Check installation of cuda-nvtx-12-4 (12.4)
check "cuda-12-4+nvtx" test -e '/usr/local/cuda-12.4/targets/x86_64-linux/include/nvtx3/' check "cuda-12-4+nvtx" test -e '/usr/local/cuda-12.4/targets/x86_64-linux/include/nvtx3/'
......
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