From f9cd74810c79a2f9937e6bcf256c85dd8e1ede5b Mon Sep 17 00:00:00 2001 From: Pavel Chekin Date: Fri, 29 Nov 2024 13:14:13 -0800 Subject: [PATCH 1/3] Use tag pr-xyz for triton-benchmarks runs on PRs. If triton-benchmarks is triggered by PR then it gets tagged by `pr-xyz` where `xyz` is the PR number. --- .github/workflows/triton-benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index a008138392..a718127419 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -48,7 +48,7 @@ env: PYTHON_VERSION: "3.10" BENCHMARKING_METHOD: ${{ inputs.benchmarking_method || 'PYTORCH_LEGACY_PROFILER_USING_IPEX' }} USE_IPEX: ${{ github.event_name != 'workflow_dispatch' && '1' || inputs.benchmarking_method == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }} - TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && 'pr') || (github.event_name == 'schedule' && 'ci') || 'test' }} + TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || (github.event_name == 'schedule' && 'ci') || 'test' }} jobs: build: From dd5071b29a83a54363f25fb5759737e77e843135 Mon Sep 17 00:00:00 2001 From: Pavel Chekin Date: Fri, 29 Nov 2024 13:17:45 -0800 Subject: [PATCH 2/3] Add "Print inputs" step --- .github/workflows/triton-benchmarks.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index a718127419..3efd81ee9f 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -60,6 +60,12 @@ jobs: run: shell: bash -noprofile --norc -eo pipefail -c "source /opt/intel/oneapi/setvars.sh > /dev/null; source {0}" steps: + - name: Print inputs + run: | + cat < Date: Fri, 29 Nov 2024 13:19:06 -0800 Subject: [PATCH 3/3] Fix typo --- .github/workflows/triton-benchmarks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triton-benchmarks.yml b/.github/workflows/triton-benchmarks.yml index 3efd81ee9f..9883b28437 100644 --- a/.github/workflows/triton-benchmarks.yml +++ b/.github/workflows/triton-benchmarks.yml @@ -48,7 +48,7 @@ env: PYTHON_VERSION: "3.10" BENCHMARKING_METHOD: ${{ inputs.benchmarking_method || 'PYTORCH_LEGACY_PROFILER_USING_IPEX' }} USE_IPEX: ${{ github.event_name != 'workflow_dispatch' && '1' || inputs.benchmarking_method == 'PYTORCH_LEGACY_PROFILER_USING_IPEX' && '1' || '0' }} - TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || (github.event_name == 'schedule' && 'ci') || 'test' }} + TAG: ${{ inputs.tag || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || (github.event_name == 'schedule' && 'ci') || 'test' }} jobs: build: