TPP-MLIR Benchmarks #38
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" | |
type: boolean | |
default: true | |
RUN_ZEN_BENCH: | |
description: "Run on Zen5" | |
type: boolean | |
default: false | |
RUN_CLX_BENCH: | |
description: "Run on CLX" | |
type: boolean | |
default: false | |
# push: | |
# branches: | |
# - 'main' | |
pull_request: | |
types: [ labeled, opened, reopened, edited ] | |
jobs: | |
TPP-MLIR-EMR-BASE: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'workflow_dispatch' && inputs.RUN_EMR_BENCH) || | |
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark')) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Emerald Rapids Base | |
run: |- | |
echo "Event Name: ${{ github.event_name }}" | |
if [ ${{ github.event_name }} == "pull_request" ]; then | |
echo "Event Label: ${{ github.event.label.name }}" | |
echo "PR Labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}" | |
fi | |
if [ ${{ github.event_name }} == "workflow_dispatch" ]; then | |
echo "RUN_EMR_BENCH: ${{ inputs.RUN_EMR_BENCH }}" | |
fi | |
TPP-MLIR-ZEN-BASE: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'workflow_dispatch' && inputs.RUN_ZEN_BENCH) || | |
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark')) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Zen5 Base | |
run: |- | |
echo "Event Name: ${{ github.event_name }}" | |
if [ ${{ github.event_name }} == "pull_request" ]; then | |
echo "Event Label: ${{ github.event.label.name }}" | |
echo "PR Labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}" | |
fi | |
if [ ${{ github.event_name }} == "workflow_dispatch" ]; then | |
echo "RUN_ZEN_BENCH: ${{ inputs.RUN_ZEN_BENCH }}" | |
fi | |
TPP-MLIR-CLX-BASE: | |
if: | | |
github.event_name == 'push' || | |
(github.event_name == 'workflow_dispatch' && inputs.RUN_CLX_BENCH) || | |
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark')) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: CLX Base | |
run: |- | |
echo "Event Name: ${{ github.event_name }}" | |
if [ ${{ github.event_name }} == "pull_request" ]; then | |
echo "Event Label: ${{ github.event.label.name }}" | |
echo "PR Labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}" | |
fi | |
if [ ${{ github.event_name }} == "workflow_dispatch" ]; then | |
echo "RUN_CLX_BENCH: ${{ inputs.RUN_CLX_BENCH }}" | |
fi |