Skip to content

Commit

Permalink
[CI] Add CLX build and make use of new benchmark-all tag (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
rengolin authored Jan 28, 2025
1 parent 6f6150a commit 8a916d5
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions .github/workflows/tpp-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
RUN_ZEN_BENCH:
description: "Run on Zen5"
default: "0"
RUN_CLX_BENCH:
description: "Run on CLX"
default: "0"
push:
branches:
- 'main'
Expand All @@ -23,15 +26,17 @@ env:
jobs:
Check_LLVM:
if: ${{ github.event_name }} == "push" || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
uses: ./.github/workflows/tpp-llvm.yml
secrets: inherit

TPP-MLIR-EMR-BASE:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -45,7 +50,8 @@ jobs:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_EMR_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }})
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark' }}) || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -57,7 +63,9 @@ jobs:
TPP-MLIR-ZEN-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_ZEN_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -69,7 +77,9 @@ jobs:
TPP-MLIR-ZEN-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_ZEN_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
Expand All @@ -78,3 +88,32 @@ jobs:
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=zen5 --time=0:30:00 -- $CMD
TPP-MLIR-CLX-BASE:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_CLX_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: CLX Base
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -b -p"
${{ env.SRUN }} --partition=clxap --time=0:30:00 -- $CMD
TPP-MLIR-CLX-OMP:
runs-on: pcl-tiergarten
if: ${{ github.event_name }} == "push" || \
${{ inputs.RUN_CLX_BENCH }} == 1 || \
(${{ github.event_name }} == "pull_request" && ${{ github.event.label.name == 'benchmark-all' }})
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: CLX OpenMP
run: |-
CMD="KIND=Release COMPILER=clang LINKER=lld BENCHMARK_NUM_ITER=${{ env.NUM_ITER }} \
${{ github.workspace }}/scripts/github/benchmark.sh -o"
${{ env.SRUN }} --partition=clxap --time=0:30:00 -- $CMD

0 comments on commit 8a916d5

Please sign in to comment.