Skip to content

Commit 8f42e09

Browse files
authored
[nvidia-cuda] - Cudnn install script issue, unable to fetch latest version of libcudnn9 library (#1275)
nvidia-cuda fix for Issue #1270
1 parent a9f7f0f commit 8f42e09

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/nvidia-cuda/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [ "$CUDNN_VERSION" = "automatic" ]; then
7474
if [[ "$CUDA_VERSION" < "12.3" ]]; then
7575
CUDNN_VERSION=$(apt-cache policy libcudnn8 | grep "$CUDA_VERSION" | grep -Eo '^[^-1+]*' | sort -V | tail -n1 | xargs)
7676
else
77-
CUDNN_VERSION=$(apt-cache policy libcudnn9-cuda-$major_cuda_version | grep "Candidate" | awk '{print $2}' | grep -Eo '^[^-1+]*')
77+
CUDNN_VERSION=$(apt-cache policy libcudnn9-cuda-$major_cuda_version | grep "Candidate" | awk '{print $2}' | grep -Eo '^[^-+]*')
7878
fi
7979
fi
8080
major_cudnn_version=$(echo "${CUDNN_VERSION}" | cut -d '.' -f 1)

test/nvidia-cuda/install_cuda_12_3_version.sh

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

8-
# # Check installation of libcudnn9-cuda-12 (9.4.0)
9-
check "libcudnn.so.9.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.9.5.0' | wc -l)"
8+
# Check installation of libcudnn9
9+
check "libcudnn.so.9" test 1 -eq "$(find /usr -name 'libcudnn.so.9' | wc -l)"
1010

1111
# Check installation of cuda-nvtx-12-3 (12.3)
1212
check "cuda-12-3+nvtx" test -e '/usr/local/cuda-12.3/targets/x86_64-linux/include/nvtx3/'

test/nvidia-cuda/install_cuda_12_4_version.sh

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

8-
# # Check installation of libcudnn9-cuda-12 (9.4.0)
9-
check "libcudnn.so.9.5.0" test 1 -eq "$(find /usr -name 'libcudnn.so.9.5.0' | wc -l)"
8+
# Check installation of libcudnn9
9+
check "libcudnn.so.9" test 1 -eq "$(find /usr -name 'libcudnn.so.9' | wc -l)"
1010

1111
# Check installation of cuda-nvtx-12-4 (12.4)
1212
check "cuda-12-4+nvtx" test -e '/usr/local/cuda-12.4/targets/x86_64-linux/include/nvtx3/'

0 commit comments

Comments
 (0)