AVX2/SVE benchmarks for vector-to-kernels and user option design change #307
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TPP-MLIR Benchmarks | |
on: | |
workflow_dispatch: | |
inputs: | |
RUN_EMR_BENCH: | |
description: "Run on Emerald Rapids" | |
default: "1" | |
RUN_ZEN_BENCH: | |
description: "Run on Zen5" | |
default: "0" | |
RUN_CLX_BENCH: | |
description: "Run on CLX" | |
default: "0" | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
types: [ labeled ] | |
env: | |
NPROCS_LIMIT_LINK: 8 | |
SRUN: ${HOME}/srun.sh | |
NUM_ITER: 100 | |
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-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-all' }}) | |
needs: Check_LLVM | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Emerald Rapids 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=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD | |
TPP-MLIR-EMR-OMP: | |
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-all' }}) | |
needs: Check_LLVM | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Emerald Rapids 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=emr --time=0:30:00 --constraint=\"notrb\" -- $CMD | |
TPP-MLIR-ZEN-BASE: | |
runs-on: pcl-tiergarten | |
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 | |
- name: Zen5 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=zen5 --time=0:30:00 -- $CMD | |
TPP-MLIR-ZEN-OMP: | |
runs-on: pcl-tiergarten | |
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 | |
- name: Zen5 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=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 | |