Skip to content

Commit 530d13c

Browse files
committed
fix benchmark filenames
1 parent 29d1006 commit 530d13c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/triton-benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ jobs:
212212
cd benchmarks/triton_kernels_benchmark
213213
python gemm_postop_addmatrix_benchmark.py --reports $REPORTS
214214
source ../../scripts/capture-hw-details.sh
215-
python ../../scripts/build_report.py $REPORTS/matmul-performance-postop-addmatrix.csv $REPORTS/gemm-postop-addmatrix-triton-report.csv --benchmark gemm-postop-addmatrix --compiler triton --param_cols "B,M,K,N" --tflops_col Triton-TFlops --hbm_col "Triton-GB/s" --tag $TAG
215+
python ../../scripts/build_report.py $REPORTS/matmul-performance-postop-addmatrix-bfloat16.csv $REPORTS/gemm-postop-addmatrix-bfloat16-triton-report.csv --benchmark gemm-postop-addmatrix --compiler triton --param_cols "B,M,K,N" --tflops_col Triton-TFlops --hbm_col "Triton-GB/s" --tag $TAG
216216
217217
- name: Run Triton GEMM + PostOp (add matrix) kernel benchmark int8
218218
if: ${{ steps.install.outcome == 'success' && !cancelled() && !contains(fromJson(inputs.skip_benchmarks || '[]'), 'gemm_postop_addmatrix_benchmark.py') }}

benchmarks/triton_kernels_benchmark/gemm_postop_addmatrix_benchmark.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ def dtypes():
2525
return [torch.bfloat16]
2626

2727

28+
def suffix():
29+
if ALL_DTYPES_OPTION:
30+
return 'all'
31+
if INT8_ONLY_OPTION:
32+
return 'int8'
33+
return 'bfloat16'
34+
35+
2836
@triton.autotune(
2937
configs=[
3038
triton.Config(
@@ -259,7 +267,7 @@ def matmul(a, b, d, c):
259267
# line styles
260268
styles=[('green', '-'), ('green', '--'), ('blue', '-'), ('blue', '--')],
261269
ylabel=['GB/s', 'TFlops'], # label name for the y-axis
262-
plot_name='matmul-performance-postop-addmatrix' + '-int8' if INT8_ONLY_OPTION else '',
270+
plot_name='matmul-performance-postop-addmatrix' + '-' + suffix(),
263271
# name for the plot. Used also as a file name for saving the plot.
264272
args={},
265273
))

0 commit comments

Comments
 (0)