File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,12 @@ run: |
6868 uv pip list
6969 set -ex
7070
71- CUDA_VERSION="${image##*cuda}" # Remove everything up to and including "cuda"
71+ # Parse CUDA version from image tag, e.g., "nvidia/cuda:12.6.3-devel-ubuntu22.04"
72+ IMAGE_TAG="${image##*:}" # "12.6.3-devel-ubuntu22.04"
73+ CUDA_VERSION="${IMAGE_TAG%%-*}" # "12.6.3"
7274 echo "Using CUDA version: ${CUDA_VERSION}"
73- CUDA_VERSION_M_M="${cuda_version %.*}" # Get major.minor by removing the last dot and everything after
74- CUDA_VERSION_MM="${CUDA_VERSION_M_M//'.'/''} "
75+ CUDA_VERSION_M_M="${CUDA_VERSION %.*}" # "12.6"
76+ CUDA_VERSION_MM="${CUDA_VERSION_M_M//./}" # "126 "
7577 TORCH_URL="https://download.pytorch.org/whl/cu${CUDA_VERSION_MM}/torch_stable.html"
7678 echo "Torch URL: ${TORCH_URL}"
7779 COVERAGE_SOURCE=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(fabric="lightning_fabric").get(n, n))')
You can’t perform that action at this time.
0 commit comments