Skip to content

add benchmark outputs #31

add benchmark outputs

add benchmark outputs #31

Workflow file for this run

name: Run benchmarks
on:
push:
branches:
- main
pull_request:
jobs:
run-benchmarks:
runs-on: ubuntu-latest
container:
image: ghcr.io/kuleuven-micas/snax:v0.2.2
steps:
- name: Install git lfs
run: apt-get install -y git-lfs
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Install snax-mlir
run: python3 -m pip install '-e.[dev,viz]'
- name: Run benchmarks
run: python3 genbenchmark.py
working-directory: benchmarks/${{ matrix.kernel }}
- name: Checkout gh-pages branch
run: |
git config --global --add safe.directory /__w/snax-mlir/snax-mlir
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git fetch origin gh-pages
git checkout gh-pages
- name: Move benchmark files to docs
run: |
rm -rf docs/benchmarks/${{ matrix.kernel }}
mkdir docs/benchmarks/${{ matrix.kernel }}
mv benchmarks/${{ matrix.kernel}}/output/* docs/benchmarks/${{ matrix.kernel }}/
- name: Commit and push benchmark files
run: |
git pull
git add docs/benchmarks/${{ matrix.kernel}}
git commit -m "Update benchmark files and images"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
kernel: [dense_matmul]