forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.73 KB
/
inductor-perf-test-nightly-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: perf-nightly-macos
# Technically not an inductor test, but uses it as a template for tracking macos performance
on:
schedule:
- cron: 0 7 * * *
workflow_dispatch:
inputs:
training:
description: Run training (on by default)?
required: false
type: boolean
default: true
inference:
description: Run inference (off by default)?
required: false
type: boolean
default: false
benchmark_configs:
description: The list of configs used the benchmark
required: false
type: string
default: torchbench_perf_mps
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
permissions: read-all
jobs:
macos-perf-py3-arm64-build:
if: github.repository_owner == 'pytorch'
name: macos-perf-py3-arm64
uses: ./.github/workflows/_mac-build.yml
with:
sync-tag: macos-perf-py3-arm64-build
build-environment: macos-py3-arm64
runner-type: macos-m1-stable
build-generates-artifacts: true
# To match the one pre-installed in the m1 runners
python-version: 3.9.12
test-matrix: |
{ include: [
{ config: "perf_smoketest", shard: 1, num_shards: 1, runner: "macos-m1-14" },
]}
macos-perf-py3-arm64-test:
name: macos-perf-py3-arm64-mps
uses: ./.github/workflows/_mac-test.yml
needs: macos-perf-py3-arm64-build
with:
build-environment: macos-py3-arm64
# Same as the build job
python-version: 3.9.12
test-matrix: ${{ needs.macos-perf-py3-arm64-build.outputs.test-matrix }}