Skip to content

Commit

Permalink
Use CUDA 11.6 samples in 11.7.
Browse files Browse the repository at this point in the history
Nvidia does not have 11.7 samples at the point.
- NVIDIA/cuda-samples#128
  • Loading branch information
xkszltl committed Jun 2, 2022
1 parent 8a120c1 commit 4a74032
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@
(
set -xe

. "$ROOT_DIR/pkgs/utils/git/version.sh" NVIDIA/cuda-samples,"v$CUDA_VER_MAJOR.$CUDA_VER_MINOR"
# Known issues:
# - By the end of May 2022, CUDA 11.7 does not have any samples, not even dummy pkgs.
# Use 11.6 version instead.
# https://github.com/NVIDIA/cuda-samples/issues/128
. "$ROOT_DIR/pkgs/utils/git/version.sh" NVIDIA/cuda-samples,"v$(sed 's/^11\.[7-9]$/11\.6/' <<< "$CUDA_VER_MAJOR.$CUDA_VER_MINOR")"
until git clone --depth 1 -b "$GIT_TAG" "$GIT_REPO" "cuda-samples-$CUDA_VER_MAJOR-$CUDA_VER_MINOR"; do sleep 1; echo "Retrying"; done
cd "cuda-samples-$CUDA_VER_MAJOR-$CUDA_VER_MINOR"

Expand Down

0 comments on commit 4a74032

Please sign in to comment.