Skip to content

Commit 7fdc179

Browse files
committed
Update cuDNN installation in setup script to use CUDA major version. This change modifies the argument passed to the install_cudnn function, enhancing compatibility with version specifications.
1 parent 63f47be commit 7fdc179

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.ci/setup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ chmod +x /tmp/install_cuda.sh
175175
# The install_cudnn function is defined in install_cuda.sh.
176176
# We source the script and call the function with sudo to install cuDNN.
177177
# The -E flag preserves the environment variables. The function expects
178-
# CUDA version (e.g., "12.8") and CUDNN version as arguments.
179-
sudo -E bash -c "source /tmp/install_cuda.sh && install_cudnn \"${CUDA_VERSION}\" \"${CUDNN_VERSION}\""
178+
# CUDA major version (e.g., "12") and CUDNN version as arguments.
179+
CUDA_MAJOR_VERSION="${CUDA_VERSION%%.*}"
180+
sudo -E bash -c "source /tmp/install_cuda.sh && install_cudnn \"${CUDA_MAJOR_VERSION}\" \"${CUDNN_VERSION}\""
180181

181182
# Install PyTorch nightly
182183
echo "Installing PyTorch nightly..."

0 commit comments

Comments
 (0)