Skip to content

Commit 6bf5f52

Browse files
committed
Add a test case for Linux aarch64 CUDA build
Signed-off-by: Huy Do <huydhn@gmail.com>
1 parent 1d94bdf commit 6bf5f52

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Test Build Linux Aarch64 Wheels with CUDA
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/actions/setup-binary-builds/action.yml
7+
- .github/workflows/test_build_wheels_linux.yml
8+
- .github/workflows/build_wheels_linux.yml
9+
- .github/workflows/generate_binary_build_matrix.yml
10+
- .github/workflows/test_build_wheels_linux_aarch64_with_cuda.yml
11+
- tools/scripts/generate_binary_build_matrix.py
12+
workflow_dispatch:
13+
14+
permissions:
15+
id-token: write
16+
contents: read
17+
18+
jobs:
19+
generate-matrix:
20+
uses: ./.github/workflows/generate_binary_build_matrix.yml
21+
with:
22+
package-type: wheel
23+
os: linux-aarch64
24+
test-infra-repository: ${{ github.repository }}
25+
test-infra-ref: ${{ github.ref }}
26+
with-cuda: enable
27+
test:
28+
needs: generate-matrix
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
include:
33+
- repository: pytorch/vision
34+
pre-script: packaging/pre_build_script.sh
35+
post-script: packaging/post_build_script.sh
36+
smoke-test-script: test/smoke_test.py
37+
package-name: torchvision
38+
- repository: pytorch/audio
39+
smoke-test-script: test/smoke_test/smoke_test.py
40+
package-name: torchaudio
41+
uses: ./.github/workflows/build_wheels_linux.yml
42+
name: ${{ matrix.repository }}
43+
with:
44+
repository: ${{ matrix.repository }}
45+
ref: nightly
46+
test-infra-repository: ${{ github.repository }}
47+
test-infra-ref: ${{ github.ref }}
48+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
49+
pre-script: ${{ matrix.pre-script }}
50+
post-script: ${{ matrix.post-script }}
51+
smoke-test-script: ${{ matrix.smoke-test-script }}
52+
package-name: ${{ matrix.package-name }}
53+
trigger-event: "${{ github.event_name }}"
54+
architecture: aarch64
55+
setup-miniconda: false

tools/scripts/generate_binary_build_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def validation_runner(arch_type: str, os: str) -> str:
149149

150150

151151
def initialize_globals(channel: str, os: str, build_python_only: bool) -> None:
152-
global CURRENT_VERSION, CUDA_ARCHES, ROCM_ARCHES, PYTHON_ARCHES
152+
global CURRENT_VERSION, CUDA_ARCHES, CUDA_AARCH64_ARCHES, ROCM_ARCHES, PYTHON_ARCHES
153153
global WHEEL_CONTAINER_IMAGES, LIBTORCH_CONTAINER_IMAGES
154154
if channel == TEST:
155155
CURRENT_VERSION = CURRENT_CANDIDATE_VERSION

0 commit comments

Comments
 (0)