Skip to content

Commit f1267cd

Browse files
authored
Add GPU runner for linux-aarch64 (NVIDIA#289)
* add linux-aarch64 GPU runner * fix test skip condition * check system * try to run on bare image * fix * change to ubuntu container * Update gh-build-and-test.yml * Update action.yml * fix apt install
1 parent 273396e commit f1267cd

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/actions/test/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ runs:
1414
shell: bash --noprofile --norc -xeuo pipefail {0}
1515
run: nvidia-smi
1616

17+
# The cache action needs this
18+
- name: Install zstd
19+
shell: bash --noprofile --norc -xeuo pipefail {0}
20+
run: |
21+
apt update
22+
apt install zstd
23+
1724
- name: Download bindings build artifacts
1825
uses: actions/download-artifact@v4
1926
with:

.github/workflows/gh-build-and-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,19 @@ jobs:
7676
test:
7777
# TODO: improve the name once a separate test matrix is defined
7878
name: Test (CUDA ${{ inputs.cuda-version }})
79-
# TODO: enable testing once linux-aarch64 & win-64 GPU runners are up
79+
# TODO: enable testing once win-64 GPU runners are up
8080
if: ${{ (github.repository_owner == 'nvidia') &&
81-
startsWith(inputs.host-platform, 'linux-x64') }}
81+
startsWith(inputs.host-platform, 'linux') }}
8282
permissions:
8383
id-token: write # This is required for configure-aws-credentials
8484
contents: read # This is required for actions/checkout
85-
runs-on: ${{ (inputs.host-platform == 'linux-x64' && 'linux-amd64-gpu-v100-latest-1') }}
86-
# TODO: use a different (nvidia?) container, or just run on bare image
85+
runs-on: ${{ (inputs.host-platform == 'linux-x64' && 'linux-amd64-gpu-v100-latest-1') ||
86+
(inputs.host-platform == 'linux-aarch64' && 'linux-arm64-gpu-a100-latest-1') }}
87+
# Our self-hosted runners require a container
88+
# TODO: use a different (nvidia?) container
8789
container:
8890
options: -u root --security-opt seccomp=unconfined --privileged --shm-size 16g
89-
image: condaforge/miniforge3:latest
91+
image: ubuntu:22.04
9092
env:
9193
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
9294
needs:

0 commit comments

Comments
 (0)