Skip to content

Commit cb41a2b

Browse files
committed
run specific triton channel
1 parent 89d8214 commit cb41a2b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/tritonbench.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ on:
2222
required: true
2323
type: string
2424
default: b200
25+
triton_channel:
26+
description: |
27+
Triton channel to run: all (default, runs both triton-main and meta-triton), triton-main, or meta-triton
28+
required: false
29+
type: choice
30+
default: all
31+
options:
32+
- all
33+
- triton-main
34+
- meta-triton
2535
benchmark_parameters:
2636
description: Extra parameters to pass to run-benchmark.sh (optional)
2737
required: false
@@ -52,13 +62,21 @@ jobs:
5262
env:
5363
BENCHMARKS: ${{ inputs.benchmarks || '' }}
5464
RUNNERS: ${{ inputs.runners || '' }}
65+
TRITON_CHANNEL: ${{ inputs.triton_channel || 'all' }}
5566
run: |
5667
set -eux
5768
69+
if [ "${TRITON_CHANNEL}" == "all" ]; then
70+
TRITON="triton-main,meta-triton"
71+
else
72+
TRITON="${TRITON_CHANNEL}"
73+
fi
74+
5875
# The generated matrix is grouped by benchmark and runner
5976
python .github/scripts/generate_tritonbench_matrix.py \
6077
--benchmarks "${BENCHMARKS}" \
61-
--runners "${RUNNERS}"
78+
--runners "${RUNNERS}" \
79+
--triton "${TRITON}"
6280
6381
6482
benchmarks:

0 commit comments

Comments
 (0)