|
23 | 23 | options: |
24 | 24 | - all |
25 | 25 | - cuda |
| 26 | + - cuda-arm64 |
26 | 27 | - rocm |
27 | 28 | - cpu |
28 | 29 | - metal |
@@ -237,6 +238,88 @@ jobs: |
237 | 238 | --filter type=regular \ |
238 | 239 | --max-used-space 25gb |
239 | 240 |
|
| 241 | + cuda-arm64-wheel: |
| 242 | + name: CUDA nightly (aarch64) |
| 243 | + needs: authorize |
| 244 | + if: ${{ needs.authorize.outputs.build == 'true' && (inputs.platform == '' || inputs.platform == 'all' || inputs.platform == 'cuda' || inputs.platform == 'cuda-arm64') }} |
| 245 | + runs-on: [self-hosted, linux, x64, sonar-arm64-wheel-builder] |
| 246 | + timeout-minutes: 1440 |
| 247 | + env: |
| 248 | + DOCKER_HOST: tcp://127.0.0.1:23750 |
| 249 | + MAX_JOBS: "64" |
| 250 | + NVCC_THREADS: "4" |
| 251 | + CUDA_VERSION: "13.0.3" |
| 252 | + TORCH_CUDA_ARCH_LIST: "8.0 8.6 8.9 9.0 10.0 11.0 12.0+PTX" |
| 253 | + RCLONE_CONFIG_B2_TYPE: s3 |
| 254 | + RCLONE_CONFIG_B2_PROVIDER: Other |
| 255 | + RCLONE_CONFIG_B2_ACCESS_KEY_ID: ${{ secrets.B2_S3_KEY_ID }} |
| 256 | + RCLONE_CONFIG_B2_SECRET_ACCESS_KEY: ${{ secrets.B2_S3_APPLICATION_KEY }} |
| 257 | + RCLONE_CONFIG_B2_REGION: ${{ vars.B2_S3_REGION }} |
| 258 | + RCLONE_CONFIG_B2_ENDPOINT: ${{ vars.B2_S3_ENDPOINT }} |
| 259 | + RCLONE_CONFIG_B2_NO_CHECK_BUCKET: "true" |
| 260 | + B2_S3_BUCKET: ${{ vars.B2_S3_BUCKET }} |
| 261 | + B2_PUBLIC_BASE_URL: ${{ vars.B2_PUBLIC_BASE_URL }} |
| 262 | + PR_WHEEL_NUMBER: ${{ needs.authorize.outputs.pr_number }} |
| 263 | + TARGET_COMMIT: ${{ needs.authorize.outputs.target_sha }} |
| 264 | + PLATFORM_BACKEND: cuda |
| 265 | + PLATFORM_ARCHITECTURE: aarch64 |
| 266 | + PLATFORM_VERSION_LOCAL: cu130 |
| 267 | + steps: |
| 268 | + - name: Check out target revision |
| 269 | + uses: actions/checkout@v4 |
| 270 | + with: |
| 271 | + ref: ${{ needs.authorize.outputs.target_sha }} |
| 272 | + fetch-depth: 0 |
| 273 | + |
| 274 | + - name: Install uv |
| 275 | + uses: astral-sh/setup-uv@v7 |
| 276 | + |
| 277 | + - name: Start isolated ARM64 CUDA builder |
| 278 | + run: .github/scripts/ensure_cuda_arm64_builder.sh |
| 279 | + |
| 280 | + - name: Install rclone |
| 281 | + run: ./.github/scripts/install-rclone.sh "$RUNNER_TEMP/rclone-bin" |
| 282 | + |
| 283 | + - name: Pin ARM64 CUDA build driver |
| 284 | + run: | |
| 285 | + install -m 0755 \ |
| 286 | + .github/scripts/build_cuda_arm64_wheel.sh \ |
| 287 | + "$RUNNER_TEMP/build_cuda_arm64_wheel.sh" |
| 288 | + install -m 0644 \ |
| 289 | + docker/Dockerfile \ |
| 290 | + "$RUNNER_TEMP/Dockerfile.cuda-arm64" |
| 291 | +
|
| 292 | + - name: Build and publish missing ARM64 CUDA wheels |
| 293 | + if: ${{ needs.authorize.outputs.temporary != 'true' }} |
| 294 | + env: |
| 295 | + PUSH_BEFORE: ${{ github.event.before }} |
| 296 | + PLATFORM_BUILD_SCRIPT: ${{ runner.temp }}/build_cuda_arm64_wheel.sh |
| 297 | + CUDA_ARM64_BUILD_DOCKERFILE: ${{ runner.temp }}/Dockerfile.cuda-arm64 |
| 298 | + run: | |
| 299 | + .github/scripts/reconcile_platform_wheels.sh \ |
| 300 | + dist/cuda-aarch64 page-index |
| 301 | +
|
| 302 | + - name: Build and publish PR ARM64 CUDA wheel |
| 303 | + if: ${{ needs.authorize.outputs.temporary == 'true' }} |
| 304 | + env: |
| 305 | + PLATFORM_BUILD_SCRIPT: ${{ runner.temp }}/build_cuda_arm64_wheel.sh |
| 306 | + CUDA_ARM64_BUILD_DOCKERFILE: ${{ runner.temp }}/Dockerfile.cuda-arm64 |
| 307 | + run: .github/scripts/build_pr_wheel.sh dist/cuda-aarch64 page-index |
| 308 | + |
| 309 | + - name: Upload ARM64 CUDA index |
| 310 | + uses: actions/upload-artifact@v4 |
| 311 | + with: |
| 312 | + name: platform-index-cuda-aarch64 |
| 313 | + path: page-index |
| 314 | + if-no-files-found: error |
| 315 | + retention-days: 1 |
| 316 | + |
| 317 | + - name: Limit ARM64 CUDA build cache |
| 318 | + if: ${{ always() }} |
| 319 | + run: | |
| 320 | + docker buildx prune --builder sonar-cuda-arm64 --force \ |
| 321 | + --filter type=regular --max-used-space 25gb |
| 322 | +
|
240 | 323 | cpu-wheel: |
241 | 324 | name: CPU nightly (${{ matrix.architecture }}) |
242 | 325 | needs: authorize |
@@ -528,7 +611,7 @@ jobs: |
528 | 611 |
|
529 | 612 | build-pages: |
530 | 613 | name: Build documentation with nightly indexes |
531 | | - needs: [authorize, cuda-wheel, cpu-wheel, metal-wheel, rocm-wheel] |
| 614 | + needs: [authorize, cuda-wheel, cuda-arm64-wheel, cpu-wheel, metal-wheel, rocm-wheel] |
532 | 615 | if: ${{ always() && !cancelled() && needs.authorize.outputs.temporary != 'true' }} |
533 | 616 | runs-on: ubuntu-24.04 |
534 | 617 | steps: |
|
0 commit comments