Skip to content

Commit f876c20

Browse files
committed
update
1 parent 5bcfb3f commit f876c20

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/_build_docker.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ defaults:
1010

1111
jobs:
1212
docker:
13-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.runner }}
1414
permissions:
1515
contents: read
1616
packages: write
1717
strategy:
1818
fail-fast: false
1919
matrix:
2020
cuda-version: [cu126, cu128, cu130, cu132]
21-
arch: [x86_64]
21+
arch: [x86_64, aarch64]
2222
include:
2323
- cuda-version: cu126
2424
cuda-number: "12.6"
@@ -28,6 +28,10 @@ jobs:
2828
cuda-number: "13.0"
2929
- cuda-version: cu132
3030
cuda-number: "13.2"
31+
- arch: x86_64
32+
runner: ubuntu-latest
33+
- arch: aarch64
34+
runner: ubuntu-24.04-arm
3135

3236
steps:
3337
- name: Checkout repository

.github/workflows/docker/install_cuda.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,36 @@ set -ex
33

44
CUDA_VERSION="${1:?Specify cuda version, e.g. 12.9}"
55

6+
ARCH=$(uname -m)
7+
if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "aarch64" ]; then
8+
echo "Unsupported arch: $ARCH"
9+
exit 1
10+
fi
11+
612
# See https://developer.nvidia.com/cuda-toolkit-archive
713
if [ "$CUDA_VERSION" == "13.2" ]; then
8-
URL=https://developer.download.nvidia.com/compute/cuda/13.2.0/local_installers/cuda-repo-rhel8-13-2-local-13.2.0_595.45.04-1.x86_64.rpm
14+
URL=https://developer.download.nvidia.com/compute/cuda/13.2.0/local_installers/cuda-repo-rhel8-13-2-local-13.2.0_595.45.04-1.${ARCH}.rpm
915
PACKAGE_NAME=cuda-toolkit-13-2
1016
elif [ "$CUDA_VERSION" == "13.0" ]; then
11-
URL=https://developer.download.nvidia.com/compute/cuda/13.0.0/local_installers/cuda-repo-rhel8-13-0-local-13.0.0_580.65.06-1.x86_64.rpm
17+
URL=https://developer.download.nvidia.com/compute/cuda/13.0.0/local_installers/cuda-repo-rhel8-13-0-local-13.0.0_580.65.06-1.${ARCH}.rpm
1218
PACKAGE_NAME=cuda-toolkit-13-0
1319
elif [ "$CUDA_VERSION" == "12.9" ]; then
14-
URL=https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda-repo-rhel8-12-9-local-12.9.1_575.57.08-1.x86_64.rpm
20+
URL=https://developer.download.nvidia.com/compute/cuda/12.9.1/local_installers/cuda-repo-rhel8-12-9-local-12.9.1_575.57.08-1.${ARCH}.rpm
1521
PACKAGE_NAME=cuda-toolkit-12-9
1622
elif [ "$CUDA_VERSION" == "12.8" ]; then
17-
URL=https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda-repo-rhel8-12-8-local-12.8.1_570.124.06-1.x86_64.rpm
23+
URL=https://developer.download.nvidia.com/compute/cuda/12.8.1/local_installers/cuda-repo-rhel8-12-8-local-12.8.1_570.124.06-1.${ARCH}.rpm
1824
PACKAGE_NAME=cuda-toolkit-12-8
1925
elif [ "$CUDA_VERSION" == "12.6" ]; then
20-
URL=https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda-repo-rhel8-12-6-local-12.6.3_560.35.05-1.x86_64.rpm
26+
URL=https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda-repo-rhel8-12-6-local-12.6.3_560.35.05-1.${ARCH}.rpm
2127
PACKAGE_NAME=cuda-toolkit-12-6
2228
elif [ "$CUDA_VERSION" == "12.4" ]; then
23-
URL=https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda-repo-rhel8-12-4-local-12.4.1_550.54.15-1.x86_64.rpm
29+
URL=https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda-repo-rhel8-12-4-local-12.4.1_550.54.15-1.${ARCH}.rpm
2430
PACKAGE_NAME=cuda-toolkit-12-4
2531
elif [ "$CUDA_VERSION" == "12.1" ]; then
26-
URL=https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-rhel8-12-1-local-12.1.1_530.30.02-1.x86_64.rpm
32+
URL=https://developer.download.nvidia.com/compute/cuda/12.1.1/local_installers/cuda-repo-rhel8-12-1-local-12.1.1_530.30.02-1.${ARCH}.rpm
2733
PACKAGE_NAME=cuda
2834
elif [ "$CUDA_VERSION" == "11.8" ]; then
29-
URL=https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-rhel8-11-8-local-11.8.0_520.61.05-1.x86_64.rpm
35+
URL=https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-rhel8-11-8-local-11.8.0_520.61.05-1.${ARCH}.rpm
3036
PACKAGE_NAME=cuda
3137
else
3238
echo "Invalid CUDA version: $CUDA_VERSION"

0 commit comments

Comments
 (0)