From 7515b61108a4bb78a6b17fd3c91b710dcdd760fc Mon Sep 17 00:00:00 2001 From: PaliC Date: Fri, 26 Jul 2024 16:11:53 -0700 Subject: [PATCH] fix workflow --- .github/workflows/inductor.yml | 21 ++++++++---- .github/workflows/triton-inductor.yml | 46 --------------------------- 2 files changed, 15 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/triton-inductor.yml diff --git a/.github/workflows/inductor.yml b/.github/workflows/inductor.yml index 35946e6..75ca9d9 100644 --- a/.github/workflows/inductor.yml +++ b/.github/workflows/inductor.yml @@ -1,13 +1,22 @@ name: inductor on: - push: - branches: - - main - - release/* - tags: - - ciflow/inductor/* + pull_request: + paths: + - '**.yml' workflow_dispatch: + inputs: + triton_commit: + description: 'Commit SHA to test Triton at' + required: true + default: 'main' + pytorch_commit: + description: 'Commit SHA to test PyTorch at' + required: true + default: 'main' + schedule: + # run nightly at 00:00 PST + random noise + - cron: '15 7 * * *' concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }} diff --git a/.github/workflows/triton-inductor.yml b/.github/workflows/triton-inductor.yml deleted file mode 100644 index 9455ed2..0000000 --- a/.github/workflows/triton-inductor.yml +++ /dev/null @@ -1,46 +0,0 @@ -# This workflow takes a triton commit as input. It then installs triton-lang/triton at a specified commit as well as pytorch viable/strict. -# It then runs the triton tests and the pytorch tests. - -name: Triton / Inductor Test - -on: - pull_request: - paths: - - '**.yml' - workflow_dispatch: - inputs: - triton_commit: - description: 'Commit SHA to test Triton at' - required: true - default: 'main' - pytorch_commit: - description: 'Commit SHA to test PyTorch at' - required: true - default: 'main' - schedule: - # run nightly at 00:00 PST + random noise - - cron: '15 7 * * *' - -jobs: - linux-focal-rocm6_1-py3_8-inductor-build: - runs-on: "linux.12xlarge" - steps: - # [pytorch repo ref] - # Use a pytorch/pytorch reference instead of a reference to the local - # checkout because when we run this action we don't *have* a local - # checkout. In other cases you should prefer a local checkout. - - name: Checkout PyTorch - uses: pytorch/pytorch/.github/actions/checkout-pytorch@main - - - name: Build - uses: pytorch/pytorch/.github/actions/linux-build@gh/PaliC/263/head - with: - build-environment: linux-jammy-py3.8-gcc11-build - docker-image-name: pytorch-linux-jammy-py3.8-gcc11-inductor-benchmarks - test-matrix: | - { include: [ - { config: "cpu_inductor_huggingface", shard: 1, num_shards: 1 }, - { config: "cpu_inductor_timm", shard: 1, num_shards: 2 }, - { config: "cpu_inductor_timm", shard: 2, num_shards: 2 }, - { config: "cpu_inductor_torchbench", shard: 1, num_shards: 2 }, - ]} \ No newline at end of file