1name: inductor-micro-benchmark-x86 2 3on: 4 schedule: 5 - cron: 0 7 * * * 6 push: 7 tags: 8 - ciflow/inductor-micro-benchmark-cpu-x86/* 9 workflow_dispatch: 10 11 12concurrency: 13 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} 14 cancel-in-progress: true 15 16permissions: read-all 17 18jobs: 19 linux-jammy-cpu-py3_9-gcc11-inductor-build: 20 name: linux-jammy-cpu-py3.9-gcc11-inductor 21 uses: ./.github/workflows/_linux-build.yml 22 with: 23 build-environment: linux-jammy-py3.9-gcc11 24 docker-image-name: pytorch-linux-jammy-py3.9-gcc11-inductor-benchmarks 25 # Use metal host for benchmark jobs 26 test-matrix: | 27 { include: [ 28 { config: "inductor-micro-benchmark-cpu-x86", shard: 1, num_shards: 1, runner: "linux.24xl.spr-metal" }, 29 ]} 30 31 linux-jammy-cpu-py3_9-gcc11-inductor-micro-benchmark-test: 32 name: linux-jammy-cpu-py3.9-gcc11-inductor 33 uses: ./.github/workflows/_linux-test.yml 34 needs: linux-jammy-cpu-py3_9-gcc11-inductor-build 35 with: 36 build-environment: linux-jammy-py3.9-gcc11 37 docker-image: ${{ needs.linux-jammy-cpu-py3_9-gcc11-inductor-build.outputs.docker-image }} 38 test-matrix: ${{ needs.linux-jammy-cpu-py3_9-gcc11-inductor-build.outputs.test-matrix }} 39 use-gha: anything-non-empty-to-use-gha 40 timeout-minutes: 720 41