Skip to content

bashism

bashism #28

Workflow file for this run

name: TPP-MLIR Benchmarks
on:
workflow_dispatch:
inputs:
RUN_SPR_BENCH:
description: "Run on Sapphire Rapids"
default: 1
RUN_ZEN_BENCH:
description: "Run on Zen4"
default: 0
RUN_ADL_BENCH:
description: "Run on Raptor Lake"
default: 0
RUN_CLX_BENCH:
description: "Run on Coffee Lake"
default: 0
NUM_ITER:
description: "Number of iterations"
default: 100
push:
branches: [ "ghactions" ]
pull_request:
branches: [ "ghactions" ]
env:
NPROCS_LIMIT_LINK: 8
jobs:
Set_Environment:
runs-on: pcl-tiergarten
steps:
- name: Set environment
run: |-
echo "RUN_SPR_BENCH=$(
if [ -x \"${{ inputs.RUN_SPR_BENCH }}\" ]; then
echo ${{ inputs.RUN_SPR_BENCH }}
else
echo 1
fi
)" >> $GITHUB_ENV
echo "RUN_ADL_BENCH=$(
if [ -x \"${{ inputs.RUN_ADL_BENCH }}\" ]; then
echo ${{ inputs.RUN_ADL_BENCH }}
else
echo 0
fi
)" >> $GITHUB_ENV
echo "RUN_CLX_BENCH=$(
if [ -x \"${{ inputs.RUN_CLX_BENCH }}\" ]; then
echo ${{ inputs.RUN_CLX_BENCH }}
else
echo 0
fi
)" >> $GITHUB_ENV
echo "RUN_ZEN_BENCH=$(
if [ -x \"${{ inputs.RUN_ZEN_BENCH }}\" ]; then
echo ${{ inputs.RUN_ZEN_BENCH }}
else
echo 0
fi
)" >> $GITHUB_ENV
echo "NUM_ITER=$(
if [ -x \"${{ inputs.NUM_ITER }}\" ]; then
echo ${{ inputs.NUM_ITER }}
else
echo 1
fi
)" >> $GITHUB_ENV
Check_LLVM:
runs-on: pcl-tiergarten
needs: Set_Environment
steps:
- uses: actions/checkout@v4
- name: Check LLVM
run: "BUILD=1 scripts/buildkite/check_llvm.sh"
TPP-MLIR-SPR-BASE:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_SPR_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Sapphire Rapids Base
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p'
TPP-MLIR-SPR-OMP:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_SPR_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Sapphire Rapids OpenMP
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o'
TPP-MLIR-ZEN-BASE:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_ZEN_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Zen4 Base
run: |-
${{ secrets.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p'
TPP-MLIR-ZEN-OMP:
runs-on: pcl-tiergarten
if: inputs.RUN_ZEN_BENCH == 1
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_ZEN_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Zen4 OpenMP
run: "${{ secrets.SRUN }} --partition=zen4 --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o'"
TPP-MLIR-CLX-BASE:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_CLX_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Coffee Lake Base
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p'
TPP-MLIR-CLX-OMP:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_CLX_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Coffee Lake OpenMP
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o'
TPP-MLIR-ADL-BASE:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_ADL_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Raptor Lake Base
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -b -p'
TPP-MLIR-ADL-OMP:
runs-on: pcl-tiergarten
needs: Check_LLVM
steps:
- uses: actions/checkout@v4
- name: Check Run
run: |-
if ${{ env.RUN_ADL_BENCH }} != 1; then
echo "This run was disabled"
exit 0
fi
- name: Raptor Lake OpenMP
run: |-
${{ secrets.SRUN }} --partition=spr --time=2:00:00 --constraint=\"notrb\" -- \
'KIND=Release COMPILER=clang LINKER=lld BUILDKITE_BENCHMARK_NUM_ITER=${NUM_ITER} \
${{ github.workspace }}/scripts/buildkite/benchmark.sh -o'