Enable ROCm CI support. #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 8 GPU Integration Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| schedule: | |
| # Runs every 6 hours | |
| - cron: '0 */6 * * *' | |
| concurrency: | |
| group: unit-test${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -l -eo pipefail {0} | |
| jobs: | |
| build-test: | |
| uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | |
| with: | |
| runner: linux.rocm.gpu.mi300.8 | |
| gpu-arch-type: rocm | |
| gpu-arch-version: "6.4" | |
| docker-image: torchtitan-rocm-pytorch-nightly-ubuntu-22.04-clang19-py3 | |
| repository: pytorch/torchtitan | |
| upload-artifact: outputs | |
| script: | | |
| set -eux | |
| USE_CPP=0 python -m pip install --pre torchao | |
| mkdir artifacts-to-be-uploaded | |
| python TEST_WITH_ROCM=1 ./tests/integration_tests.py artifacts-to-be-uploaded --ngpu 8 |