Skip to content

Commit

Permalink
update CI to generate dtype specific plots
Browse files Browse the repository at this point in the history
  • Loading branch information
saienduri committed Oct 1, 2024
1 parent 611e194 commit da39202
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/run_bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
run: |
python3.11 -m venv bench_venv
source bench_venv/bin/activate
pip install --upgrade pip
pip install --find-links https://iree.dev/pip-release-links.html iree-compiler iree-runtime --upgrade
pip install -r requirements.txt
pip install --no-compile --pre --upgrade -e common_tools
pip install shark-turbine@git+https://github.com/iree-org/iree-turbine.git@main
- name: Convolutions
run: |
Expand All @@ -31,6 +33,11 @@ jobs:
run: |
source bench_venv/bin/activate
python attentionbench/attention_bench.py
- name: TK GEMM
run: |
source bench_venv/bin/activate
python gemmbench/gemm_bench.py --tk
- name: GEMM
run: |
Expand All @@ -40,10 +47,13 @@ jobs:
- name: Roofline Plots
run: |
source bench_venv/bin/activate
python convbench/shark_conv.py --roofline results/iree_conv.csv --plot results/iree_conv.png
python convbench/shark_conv.py --roofline results/iree_attention.csv --plot results/iree_attention.png
python convbench/shark_conv.py --roofline results/iree_conv.csv --plot results/iree_conv_i8.png --dtype i8
python convbench/shark_conv.py --roofline results/iree_conv.csv --plot results/iree_conv_f32.png --dtype f32
python convbench/shark_conv.py --roofline results/iree_attention.csv --plot results/iree_attention_fp16.png --dtype f16
python convbench/shark_conv.py --roofline results/iree_attention.csv --plot results/iree_attention_fp8.png --dtype f8E4M3FNUZ
python convbench/shark_conv.py --roofline results/iree_gemm.csv --plot results/iree_gemm.png
python convbench/shark_conv.py --roofline results/iree_gemm.csv,results/iree_attention.csv,results/iree_conv.csv --plot results/combined.png
python convbench/shark_conv.py --roofline results/iree_gemm_tk.csv --plot results/iree_gemm_tk.png
python convbench/shark_conv.py --roofline results/iree_gemm.csv,results/iree_gemm_tk.csv,results/iree_attention.csv,results/iree_conv.csv --plot results/combined.png
- name: Upload benchmark results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit da39202

Please sign in to comment.