11# Test ExecuTorch AOTI ROCm support.
2- # Use gfx950 for functional coverage and reserve scarce gfx1100 RDNA runners
3- # for a future focused performance job .
2+ # Use gfx950 for routine functional coverage and reserve scarce gfx1100 RDNA
3+ # runners for changes that directly affect the Voxtral ROCm path .
44
55name : Test ROCm AOTI
66
2020 - .ci/scripts/test-rocm-voxtral.sh
2121 - CMakeLists.txt
2222 - CMakePresets.json
23+ - Makefile
2324 - install_requirements.py
2425 - torch_pin.py
2526 - backends/aoti/**
@@ -102,19 +103,25 @@ jobs:
102103 runs-on : ubuntu-latest
103104 outputs :
104105 run-voxtral : ${{ steps.decide.outputs.run-voxtral }}
106+ run-gfx1100 : ${{ steps.decide.outputs.run-gfx1100 }}
105107 steps :
106108 - name : Select Voxtral runs
107109 id : decide
108110 env :
109111 CHANGED_FILES : ${{ needs.changed-files.outputs.changed-files }}
112+ EVENT_NAME : ${{ github.event_name }}
110113 FULL_RUN : ${{ needs.run-decision.outputs.is-full-run }}
111114 run : |
112115 set -efu
113116 RUN_VOXTRAL=false
117+ RUN_GFX1100=false
114118
115- if [[ "$FULL_RUN" == "true" ]]; then
119+ if [[ "$CHANGED_FILES" == "*" || "$ FULL_RUN" == "true" ]]; then
116120 RUN_VOXTRAL=true
117121 fi
122+ if [[ "$EVENT_NAME" == "workflow_dispatch" ]]; then
123+ RUN_GFX1100=true
124+ fi
118125
119126 for path in $CHANGED_FILES; do
120127 case "$path" in
@@ -124,19 +131,29 @@ jobs:
124131 examples/models/voxtral_realtime/* | \
125132 backends/cuda/aoti_packed_int4_tensor.py | \
126133 backends/cuda/triton/kernels/int4_matmul.py | \
134+ backends/cuda/triton/replacement_pass.py | \
127135 .ci/scripts/test-rocm-voxtral.sh | \
136+ .github/workflows/rocm.yml)
137+ RUN_GFX1100=true
138+ RUN_VOXTRAL=true
139+ ;;
140+ Makefile | \
141+ CMakeLists.txt | \
142+ CMakePresets.json | \
143+ backends/aoti/* | \
144+ backends/cuda/* | \
145+ extension/cuda/* | \
128146 .github/workflows/_ci-run-decision.yml | \
129147 .github/workflows/_get-changed-files.yml | \
130148 install_requirements.py | \
131- torch_pin.py | \
132- .github/workflows/rocm.yml)
149+ torch_pin.py)
133150 RUN_VOXTRAL=true
134- break
135151 ;;
136152 esac
137153 done
138154
139155 echo "run-voxtral=$RUN_VOXTRAL" >> "$GITHUB_OUTPUT"
156+ echo "run-gfx1100=$RUN_GFX1100" >> "$GITHUB_OUTPUT"
140157
141158 unittest-rocm-gfx950 :
142159 name : unittest-rocm-gfx950-rocm${{ matrix.rocm-version }}
@@ -199,4 +216,47 @@ jobs:
199216 eval "$(conda shell.bash hook)"
200217 conda create -n executorch-rocm-ci python=3.10 -y
201218 conda activate executorch-rocm-ci
202- ROCM_VERSION=${{ matrix.rocm-version }} bash .ci/scripts/test-rocm-voxtral.sh
219+ EXPECTED_ROCM_ARCH=gfx950 EXPECTED_WARP_SIZE=64 \
220+ ROCM_VERSION=${{ matrix.rocm-version }} \
221+ bash .ci/scripts/test-rocm-voxtral.sh
222+
223+ # This scarce RDNA runner is limited to manual runs and direct changes to the
224+ # Voxtral ROCm execution path; it does not participate in broad sampling.
225+ test-voxtral-realtime-rocm-gfx1100 :
226+ name : test-voxtral-realtime-rocm-gfx1100-rocm${{ matrix.rocm-version }}
227+ needs : [voxtral-run-decision]
228+ if : |
229+ needs.voxtral-run-decision.outputs.run-gfx1100 == 'true' &&
230+ (github.event_name != 'pull_request' ||
231+ github.event.pull_request.head.repo.full_name == github.repository)
232+ concurrency :
233+ group : rocm-gfx1100-${{ github.event.pull_request.number || github.ref_name }}
234+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
235+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
236+ permissions :
237+ id-token : write
238+ contents : read
239+ secrets : inherit
240+ strategy :
241+ fail-fast : false
242+ matrix :
243+ rocm-version : ["7.1"]
244+ with :
245+ timeout : 180
246+ no-sudo : true
247+ secrets-env : EXECUTORCH_HF_TOKEN
248+ runner : linux.rocm.gpu.gfx1100
249+ gpu-arch-type : rocm
250+ gpu-arch-version : ${{ matrix.rocm-version }}
251+ use-custom-docker-registry : false
252+ docker-image : pytorch/manylinux2_28-builder:rocm${{ matrix.rocm-version }}
253+ submodules : recursive
254+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
255+ script : |
256+ set -eux
257+ eval "$(conda shell.bash hook)"
258+ conda create -n executorch-rocm-ci python=3.10 -y
259+ conda activate executorch-rocm-ci
260+ EXPECTED_ROCM_ARCH=gfx1100 EXPECTED_WARP_SIZE=32 \
261+ ROCM_VERSION=${{ matrix.rocm-version }} \
262+ bash .ci/scripts/test-rocm-voxtral.sh
0 commit comments