Skip to content

Commit cfe3d9b

Browse files
authored
[Benchmark CI] Allow specifying custom args to benchmark runner via UI (#974)
1 parent f0631e3 commit cfe3d9b

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ on:
2828
required: false
2929
type: string
3030
default: ""
31+
custom-args:
32+
required: false
33+
type: string
34+
default: ""
3135

3236
jobs:
3337
benchmark:
@@ -155,7 +159,8 @@ jobs:
155159
--only-match-mode prefix-with-baseline \
156160
--baseline $BASELINE \
157161
--input-sample-mode equally-spaced-k \
158-
--keep-going
162+
--keep-going \
163+
${{ inputs.custom-args }}
159164
160165
# Relax the GPU
161166
sleep 2m
@@ -172,7 +177,8 @@ jobs:
172177
--input-sample-mode equally-spaced-k \
173178
--output "$TEST_REPORTS_DIR/helionbench.json" \
174179
--append-to-output \
175-
--keep-going
180+
--keep-going \
181+
${{ inputs.custom-args }}
176182
177183
echo "✅ Completed benchmark for kernel: $kernel"
178184
done

.github/workflows/benchmark_dispatch.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ on:
2828
required: false
2929
type: string
3030
default: ""
31+
custom_args:
32+
description: 'Custom arguments to append to benchmark commands'
33+
required: false
34+
type: string
35+
default: ""
3136

3237
jobs:
3338
gen-matrix-h100:
@@ -55,6 +60,7 @@ jobs:
5560
alias: h100
5661
kernels: ${{ matrix.kernels }}
5762
env-vars: ${{ github.event.inputs.env_vars }}
63+
custom-args: ${{ github.event.inputs.custom_args }}
5864

5965
gen-matrix-b200:
6066
uses: ./.github/workflows/compute-benchmark-matrix.yml
@@ -81,6 +87,7 @@ jobs:
8187
alias: b200
8288
kernels: ${{ matrix.kernels }}
8389
env-vars: ${{ github.event.inputs.env_vars }}
90+
custom-args: ${{ github.event.inputs.custom_args }}
8491

8592
gen-matrix-mi325x:
8693
uses: ./.github/workflows/compute-benchmark-matrix.yml
@@ -107,3 +114,4 @@ jobs:
107114
alias: mi325x
108115
kernels: ${{ matrix.kernels }}
109116
env-vars: ${{ github.event.inputs.env_vars }}
117+
custom-args: ${{ github.event.inputs.custom_args }}

0 commit comments

Comments
 (0)