mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Running on Graviton4 Skip ConvTranspose1d benchmarks if PyTorch is compiled with ACL, due to https://github.com/pytorch/pytorch/issues/165654 Pull Request resolved: https://github.com/pytorch/pytorch/pull/165585 Approved by: https://github.com/huydhn
79 lines
2.5 KiB
YAML
79 lines
2.5 KiB
YAML
name: operator_benchmark
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- ciflow/op-benchmark/*
|
|
workflow_dispatch:
|
|
inputs:
|
|
test_mode:
|
|
type: choice
|
|
options:
|
|
- 'short'
|
|
- 'long'
|
|
- 'all'
|
|
description: tag filter for operator benchmarks, options from long, short, all
|
|
schedule:
|
|
# Run at 07:00 UTC every Sunday
|
|
- cron: 0 7 * * 0
|
|
pull_request:
|
|
paths:
|
|
- benchmarks/operator_benchmark/**
|
|
- .github/workflows/operator_benchmark.yml
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
x86-opbenchmark-build:
|
|
if: github.repository_owner == 'pytorch'
|
|
name: x86-opbenchmark-build
|
|
uses: ./.github/workflows/_linux-build.yml
|
|
with:
|
|
build-environment: linux-jammy-py3.10-gcc11-build
|
|
docker-image-name: ci-image:pytorch-linux-jammy-py3-gcc11-inductor-benchmarks
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: "cpu_operator_benchmark_${{ inputs.test_mode || 'short' }}", shard: 1, num_shards: 1, runner: "linux.12xlarge" },
|
|
]}
|
|
secrets: inherit
|
|
|
|
x86-opbenchmark-test:
|
|
name: x86-opbenchmark-test
|
|
uses: ./.github/workflows/_linux-test.yml
|
|
needs: x86-opbenchmark-build
|
|
with:
|
|
build-environment: linux-jammy-py3.10-gcc11-build
|
|
docker-image: ${{ needs.x86-opbenchmark-build.outputs.docker-image }}
|
|
test-matrix: ${{ needs.x86-opbenchmark-build.outputs.test-matrix }}
|
|
secrets: inherit
|
|
|
|
aarch64-opbenchmark-build:
|
|
if: github.repository_owner == 'pytorch'
|
|
name: aarch64-opbenchmark-build
|
|
uses: ./.github/workflows/_linux-build.yml
|
|
with:
|
|
build-environment: linux-jammy-aarch64-py3.10
|
|
runner: linux.arm64.m7g.4xlarge
|
|
docker-image-name: ci-image:pytorch-linux-jammy-aarch64-py3.10-gcc11
|
|
test-matrix: |
|
|
{ include: [
|
|
{ config: "cpu_operator_benchmark_short", shard: 1, num_shards: 1, runner: "linux.arm64.m8g.4xlarge" },
|
|
]}
|
|
secrets: inherit
|
|
|
|
aarch64-opbenchmark-test:
|
|
name: aarch64-opbenchmark-test
|
|
uses: ./.github/workflows/_linux-test.yml
|
|
needs: aarch64-opbenchmark-build
|
|
with:
|
|
build-environment: linux-jammy-aarch64-py3.10
|
|
docker-image: ${{ needs.aarch64-opbenchmark-build.outputs.docker-image }}
|
|
test-matrix: ${{ needs.aarch64-opbenchmark-build.outputs.test-matrix }}
|
|
secrets: inherit
|