Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jorendumoulin committed Oct 1, 2024
1 parent 3bc0bd4 commit e1355cc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/run-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,33 @@ jobs:
container:
image: ghcr.io/kuleuven-micas/snax:v0.2.2
steps:
- uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- name: Install snax-mlir
run: python3 -m pip install '-e.[dev]'
- name: Run benchmarks
run: python3 genbenchmark.py
working-directory: benchmarks/${{ matrix.kernel }}
- uses: actions/upload-artifact@v4
with:
name: output_report
path: benchmarks/${{ matrix.kernel }}/output_report.txt
- name: Checkout gh-pages branch
run: |
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 }}/output/
- name: Commit and push benchmark files
run: |
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git add docs/benchmarks/output
git commit -m "Update benchmark files and images"
git push --force-with-lease origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
kernel: [dense_matmul]
2 changes: 1 addition & 1 deletion benchmarks/dense_matmul/genbenchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def output_log_benchmark(benchmark_name: str, utilization: dict[str, int]) -> st

if __name__ == "__main__":
"""Runs the gendata.py script with specified arguments."""
selected_dims = [64]
selected_dims = [32, 48]

sizes = list(itertools.product(selected_dims, repeat=3))

Expand Down

0 comments on commit e1355cc

Please sign in to comment.